cvs: smarty /docs/en/designers language-builtin-functions.xml language-modifiers.xml
[email protected] ("Peter 'Mash' Morgan") Mon, 27 Mar 2006 23:57:08 -0000
| Newsgroups | php.smarty.cvs |
|---|---|
| Message-ID | <cvspete_morgan1143503828@cvsserver> |
pete_morgan Mon Mar 27 23:57:08 2006 UTC
Modified files:
/smarty/docs/en/designers language-builtin-functions.xml
language-modifiers.xml
Log:
tweek
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-builtin-functions.xml?r1=1.4&r2=1.5&diff_format=u
Index: smarty/docs/en/designers/language-builtin-functions.xml
diff -u smarty/docs/en/designers/language-builtin-functions.xml:1.4 smarty/docs/en/designers/language-builtin-functions.xml:1.5
--- smarty/docs/en/designers/language-builtin-functions.xml:1.4 Tue Sep 13 19:09:29 2005
+++ smarty/docs/en/designers/language-builtin-functions.xml Mon Mar 27 23:57:08 2006
@@ -1,13 +1,22 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<chapter id="language.builtin.functions">
<title>Built-in Functions</title>
<para>
- Smarty comes with several built-in functions. Built-in functions
- are integral to the template language. You cannot create custom
- functions with the same names, nor can you modify built-in functions.
+ Smarty comes with several built-in functions. These built-in functions
+ are the integral part of the smarty template engine. You cannot create your own
+ <link linkend="language.custom.functions">custom functions</linkend>
+ with the same name; and you should not need to
+ modify the built-in functions.
+ </para>
+ <para>
+ A few on these functions have an <emphasis role="bold">assign</emphasis>
+ attribute which collects
+ the result the function to a named variable within a template instead of being output;
+ much like the <link linkend="language.function.assign">{assign}</link> function.
</para>
+
&designers.language-builtin-functions.language-function-capture;
&designers.language-builtin-functions.language-function-config-load;
&designers.language-builtin-functions.language-function-foreach;
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-modifiers.xml?r1=1.22&r2=1.23&diff_format=u
Index: smarty/docs/en/designers/language-modifiers.xml
diff -u smarty/docs/en/designers/language-modifiers.xml:1.22 smarty/docs/en/designers/language-modifiers.xml:1.23
--- smarty/docs/en/designers/language-modifiers.xml:1.22 Sat Mar 25 09:35:06 2006
+++ smarty/docs/en/designers/language-modifiers.xml Mon Mar 27 23:57:08 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.22 $ -->
+<!-- $Revision: 1.23 $ -->
<chapter id="language.modifiers">
<title>Variable Modifiers</title>
<para>
@@ -45,6 +45,11 @@
{* php's shuffle on servers's ip *}
{$smarty.server.SERVER_ADDR|shuffle}
+
+(* this will uppercase and truncate the whole array *}
+<select name="name_id">
+{html_options output=$myArray|upper|truncate:20}
+</select>
]]>
</programlisting>
</example>