mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
*** empty log message ***
This commit is contained in:
30
docs.sgml
30
docs.sgml
@@ -6199,11 +6199,11 @@ s m o k e r s a r e p. . .
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
||||||
</programlisting>
|
</programlisting>
|
||||||
As a rule, Smarty object is always passed to the plugins as the last
|
As a general rule, Smarty object is always passed to the plugins as the last
|
||||||
parameter.
|
parameter (except for modifiers).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect2 id="section.plugins.functions"><title>functions</title>
|
<sect2 id="section.plugins.functions"><title>Functions</title>
|
||||||
<funcsynopsis>
|
<funcsynopsis>
|
||||||
<funcprototype>
|
<funcprototype>
|
||||||
<funcdef>void <function>plugin_name</function></funcdef>
|
<funcdef>void <function>plugin_name</function></funcdef>
|
||||||
@@ -6230,10 +6230,8 @@ require_once SMARTY_DIR . 'plugins/function.html_options.php';
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
See also:
|
See also:
|
||||||
<link linkend="api.register.function">register_function</link>,
|
<link linkend="api.register.function">register_function()</link>,
|
||||||
<link linkend="api.unregister.function">unregister_function</link>.
|
<link linkend="api.unregister.function">unregister_function()</link>.
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<example>
|
<example>
|
||||||
@@ -6267,8 +6265,8 @@ function smarty_function_eightball($params, &$smarty)
|
|||||||
which can be used in the template as:
|
which can be used in the template as:
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
Question: Will we ever have time travel?
|
Question: Will we ever have time travel?
|
||||||
Answer: {eightball}.
|
Answer: {eightball}.
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
@@ -6309,7 +6307,7 @@ function smarty_function_assign($params, &$smarty)
|
|||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 id="section.plugins.modifiers"><title>modifiers</title>
|
<sect2 id="section.plugins.modifiers"><title>Modifiers</title>
|
||||||
<funcsynopsis>
|
<funcsynopsis>
|
||||||
<funcprototype>
|
<funcprototype>
|
||||||
<funcdef>mixed <function>plugin_name</function></funcdef>
|
<funcdef>mixed <function>plugin_name</function></funcdef>
|
||||||
@@ -6327,8 +6325,16 @@ function smarty_function_assign($params, &$smarty)
|
|||||||
The modifier has to return the result of its processing.
|
The modifier has to return the result of its processing.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
|
See also
|
||||||
|
<link linkend="api.register.modifier">register_modifier()</link>,
|
||||||
|
<link linkend="api.unregister.modifier">unregister_modifier()</link>.
|
||||||
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>simple modifier plugin</title>
|
<title>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>
|
<programlisting>
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
@@ -6347,10 +6353,6 @@ function smarty_modifier_capitalize($string)
|
|||||||
?>
|
?>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
|
||||||
This plugin basically aliases one of the built-in PHP functions. It
|
|
||||||
does not have any additional parameters.
|
|
||||||
</para>
|
|
||||||
<example>
|
<example>
|
||||||
<title>more complex modifier plugin</title>
|
<title>more complex modifier plugin</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
Reference in New Issue
Block a user