From 18a148586c7d197fa07c51769ace4026b60b52eb Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 21 Feb 2002 17:06:05 +0000 Subject: [PATCH] *** empty log message *** --- docs.sgml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/docs.sgml b/docs.sgml index 536767b2..146e9db1 100644 --- a/docs.sgml +++ b/docs.sgml @@ -6199,11 +6199,11 @@ s m o k e r s a r e p. . . require_once SMARTY_DIR . 'plugins/function.html_options.php'; - As a rule, Smarty object is always passed to the plugins as the last - parameter. + As a general rule, Smarty object is always passed to the plugins as the last + parameter (except for modifiers). - functions + Functions void plugin_name @@ -6230,10 +6230,8 @@ require_once SMARTY_DIR . 'plugins/function.html_options.php'; See also: - register_function, - unregister_function. - - + register_function(), + unregister_function(). @@ -6267,8 +6265,8 @@ function smarty_function_eightball($params, &$smarty) which can be used in the template as: -Question: Will we ever have time travel? -Answer: {eightball}. + Question: Will we ever have time travel? + Answer: {eightball}. @@ -6309,7 +6307,7 @@ function smarty_function_assign($params, &$smarty) - modifiers + Modifiers mixed plugin_name @@ -6327,8 +6325,16 @@ function smarty_function_assign($params, &$smarty) The modifier has to return the result of its processing. + See also + register_modifier(), + unregister_modifier(). + simple modifier plugin + + This plugin basically aliases one of the built-in PHP functions. It + does not have any additional parameters. + <?php /* @@ -6347,10 +6353,6 @@ function smarty_modifier_capitalize($string) ?> - - This plugin basically aliases one of the built-in PHP functions. It - does not have any additional parameters. - more complex modifier plugin