Fixes to documentation syntax so that all content can be processed used xsltproc docbook-xsl tools. In particular, fixes unescaped entities, broken tags, unquoted attributes.

This commit is contained in:
boots
2003-10-29 22:46:46 +00:00
parent 5678bdc66e
commit 7458ee31cd
10 changed files with 1621 additions and 1621 deletions

View File

@@ -52,7 +52,7 @@ Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75
</sect1> </sect1>
</chapter> </chapter>
<chapter id="tips"> <chapter id="tips">
<title>Tips & Tricks</title> <title>Tips &amp; Tricks</title>
<para> <para>
</para> </para>
<sect1 id="tips.blank.var.handling"> <sect1 id="tips.blank.var.handling">
@@ -185,7 +185,7 @@ OUTPUT:
2001/01/04 2001/01/04
{if $date1 < $date2} {if $date1 &lt; $date2}
... ...
{/if}</programlisting> {/if}</programlisting>
</example> </example>
@@ -288,7 +288,7 @@ Pretty easy isn't it?
You can embed PHP into your templates with the {php}{/php} tags. You can embed PHP into your templates with the {php}{/php} tags.
With this, you can setup self contained templates with their own With this, you can setup self contained templates with their own
data structures for assigning their own variables. With the logic data structures for assigning their own variables. With the logic
embedded like this, you can keep the template & logic together. This embedded like this, you can keep the template &amp; logic together. This
way no matter where the template source is coming from, it is always way no matter where the template source is coming from, it is always
together as one component. together as one component.
</para> </para>
@@ -300,7 +300,7 @@ Pretty easy isn't it?
{php} {php}
// setup our function for fetching stock data // setup our function for fetching stock data
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// put logic here that fetches $ticker_name // put logic here that fetches $ticker_name
// and $ticker_price from some resource // and $ticker_price from some resource
} }
@@ -331,7 +331,7 @@ load_ticker.php
&lt;?php &lt;?php
// setup our function for fetching stock data // setup our function for fetching stock data
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// put logic here that fetches $ticker_name // put logic here that fetches $ticker_name
// and $ticker_price from some resource // and $ticker_price from some resource
} }
@@ -401,4 +401,4 @@ Send inquiries to
check the website. check the website.
</para> </para>
</chapter> </chapter>
</part> </part>

View File

@@ -52,7 +52,7 @@ Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75
</sect1> </sect1>
</chapter> </chapter>
<chapter id="tips"> <chapter id="tips">
<title>Tips & Tricks</title> <title>Tips &amp; Tricks</title>
<para> <para>
</para> </para>
<sect1 id="tips.blank.var.handling"> <sect1 id="tips.blank.var.handling">
@@ -186,7 +186,7 @@ AUSGABE:
2001/01/04 2001/01/04
{if $datum1 < $datum2} {if $datum1 &lt; $datum2}
... ...
{/if}</programlisting> {/if}</programlisting>
</example> </example>
@@ -304,7 +304,7 @@ Einfach, oder?
{php} {php}
// unsere funktion um die b&ouml;rsenkurse zu holen // unsere funktion um die b&ouml;rsenkurse zu holen
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// hier wird $ticker_name und $ticker_price zugewiesen // hier wird $ticker_name und $ticker_price zugewiesen
} }
@@ -332,7 +332,7 @@ load_ticker.php
&lt;?php &lt;?php
// unsere funktion um die b&ouml;rsenkurse zu holen // unsere funktion um die b&ouml;rsenkurse zu holen
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// hier wird $ticker_name und $ticker_price zugewiesen // hier wird $ticker_name und $ticker_price zugewiesen
} }
@@ -406,4 +406,4 @@ senden
oder die Webseite. oder die Webseite.
</para> </para>
</chapter> </chapter>
</part> </part>

View File

@@ -430,13 +430,13 @@ Diebe Haben In Norwegen 20 Tonnen Streusalz Entwendet.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.count.characters"> <sect1 id="language.modifier.count.characters">
<title>count_characters (Buchstaben z&auml;hlen)</title> <title>count_characters (Buchstaben z&auml;hlen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=6> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -533,13 +533,13 @@ S&uuml;dafrika: Eine Polizistin fesselte - mangels mitgebrachter Handschellen -
</sect1> </sect1>
<sect1 id="language.modifier.date.format"> <sect1 id="language.modifier.date.format">
<title>date_format (Datums Formatierung)</title> <title>date_format (Datums Formatierung)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -670,13 +670,13 @@ angegebenen Formatierungszeichen unterst&uuml;tzt werden. Beispielsweise stehen
</sect1> </sect1>
<sect1 id="language.modifier.default"> <sect1 id="language.modifier.default">
<title>default (Standardwert)</title> <title>default (Standardwert)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -716,14 +716,14 @@ kein Titel</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.escape"> <sect1 id="language.modifier.escape">
<title>escape (Maskieren)</title> <title>escape (Maskieren)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=6> <tgroup cols="6">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=possible align=center> <colspec colname="default" align="center" />
<colspec colname=default align=center> <colspec colname="possible" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -780,13 +780,13 @@ href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74"&gt;&amp;#x62;&amp;#x6f;&amp;#x62;&a
</sect1> </sect1>
<sect1 id="language.modifier.indent"> <sect1 id="language.modifier.indent">
<title>indent (Einr&uuml;cken)</title> <title>indent (Einr&uuml;cken)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -878,13 +878,13 @@ in kalifornien wurde ein hund in das w&auml;hlerverzeichnis eingetragen.</progra
</sect1> </sect1>
<sect1 id="language.modifier.regex.replace"> <sect1 id="language.modifier.regex.replace">
<title>regex_replace (Ersetzen mit regul&auml;ren Ausdr&uuml;cken)</title> <title>regex_replace (Ersetzen mit regul&auml;ren Ausdr&uuml;cken)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -932,13 +932,13 @@ Ein Bankangestellter in England zerkaut aus Stress bei der Arbeit w&ouml;chentli
</sect1> </sect1>
<sect1 id="language.modifier.replace"> <sect1 id="language.modifier.replace">
<title>replace (Ersetzen)</title> <title>replace (Ersetzen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -986,13 +986,13 @@ Ein Holsten-Laster hat in England seine komplette Fracht verlore
</sect1> </sect1>
<sect1 id="language.modifier.spacify"> <sect1 id="language.modifier.spacify">
<title>spacify (Zeichenkette splitten)</title> <title>spacify (Zeichenkette splitten)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1034,13 +1034,13 @@ E^^i^^n^^ ^^M^^a^^n^^n^^ ^^f^^l^^o^^g^^ ^^5^^0^^0^^0^^ ^^k^^m^^ ^^u^^m^^ ^^s^^i^
</sect1> </sect1>
<sect1 id="language.modifier.string.format"> <sect1 id="language.modifier.string.format">
<title>string_format (Zeichenkette formatieren)</title> <title>string_format (Zeichenkette formatieren)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1127,13 +1127,13 @@ Da ein betrunkener Mann auf einem Flug ausfallend wurde, musste das Flugzeug auf
</sect1> </sect1>
<sect1 id="language.modifier.truncate"> <sect1 id="language.modifier.truncate">
<title>truncate (k&uuml;rzen)</title> <title>truncate (k&uuml;rzen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1218,13 +1218,13 @@ EIN 58J&Auml;HRIGER BELGIER IST NACH 35 JAHREN ZUM SIEGER DER WELTMEISTERSCHAFT
</sect1> </sect1>
<sect1 id="language.modifier.wordwrap"> <sect1 id="language.modifier.wordwrap">
<title>wordwrap (Zeilenumbruch)</title> <title>wordwrap (Zeilenumbruch)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1346,13 +1346,13 @@ e i n e m s t a d t r. . .</programlisting>
</para> </para>
<sect1 id="language.function.capture"> <sect1 id="language.function.capture">
<title>capture (Ausgabe abfangen)</title> <title>capture (Ausgabe abfangen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -1426,13 +1426,13 @@ e i n e m s t a d t r. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.config.load"> <sect1 id="language.function.config.load">
<title>config_load (Konfiguration laden)</title> <title>config_load (Konfiguration laden)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -1539,13 +1539,13 @@ e i n e m s t a d t r. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.foreach"> <sect1 id="language.function.foreach">
<title>foreach, foreachelse</title> <title>foreach, foreachelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -1695,13 +1695,13 @@ cell: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include"> <sect1 id="language.function.include">
<title>include (einbinden)</title> <title>include (einbinden)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -1794,13 +1794,13 @@ cell: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include.php"> <sect1 id="language.function.include.php">
<title>include_php (PHP-Code einbinden)</title> <title>include_php (PHP-Code einbinden)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -1900,13 +1900,13 @@ index.tpl
</sect1> </sect1>
<sect1 id="language.function.insert"> <sect1 id="language.function.insert">
<title>insert (einf&uuml;gen)</title> <title>insert (einf&uuml;gen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -2058,7 +2058,7 @@ index.tpl
{* Klammern sind erlaubt *} {* Klammern sind erlaubt *}
{if ( $anzahl < 0 or $anzahl > 1000 ) and $menge >= #minMengeAmt#} {if ( $anzahl &lt; 0 or $anzahl &gt; 1000 ) and $menge &gt;= #minMengeAmt#}
... ...
{/if} {/if}
@@ -2171,13 +2171,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.section"> <sect1 id="language.function.section">
<title>section,sectionelse</title> <title>section,sectionelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -2775,13 +2775,13 @@ AUSGABE:
</para> </para>
<sect1 id="language.function.assign"> <sect1 id="language.function.assign">
<title>assign (zuweisen)</title> <title>assign (zuweisen)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -2826,13 +2826,13 @@ Der Wert von $name ist Bob.</programlisting>
</sect1> </sect1>
<sect1 id="language.function.counter"> <sect1 id="language.function.counter">
<title>counter (Z&auml;hler)</title> <title>counter (Z&auml;hler)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -2922,13 +2922,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.cycle"> <sect1 id="language.function.cycle">
<title>cycle (Zyklus)</title> <title>cycle (Zyklus)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3030,13 +3030,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.debug"> <sect1 id="language.function.debug">
<title>debug</title> <title>debug</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3065,13 +3065,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.eval"> <sect1 id="language.function.eval">
<title>eval (auswerten)</title> <title>eval (auswerten)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3160,13 +3160,13 @@ Bitte geben Sie einen &lt;b&gt;Provinznamen&lt;/b&gt; ein.
</sect1> </sect1>
<sect1 id="language.function.fetch"> <sect1 id="language.function.fetch">
<title>fetch</title> <title>fetch</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3246,13 +3246,13 @@ Bitte geben Sie einen &lt;b&gt;Provinznamen&lt;/b&gt; ein.
</sect1> </sect1>
<sect1 id="language.function.html.checkboxes"> <sect1 id="language.function.html.checkboxes">
<title>html_checkboxes (Ausgabe von HTML-CHECKBOX Tag)</title> <title>html_checkboxes (Ausgabe von HTML-CHECKBOX Tag)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3368,13 +3368,13 @@ AUSGABE: (beider Beispiele)
</sect1> </sect1>
<sect1 id="language.function.html.image"> <sect1 id="language.function.html.image">
<title>html_image (Ausgabe von HTML-IMG Tag)</title> <title>html_image (Ausgabe von HTML-IMG Tag)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3486,13 +3486,13 @@ AUSGABE: (m&ouml;glich)
</sect1> </sect1>
<sect1 id="language.function.html.options"> <sect1 id="language.function.html.options">
<title>html_options (Ausgabe von HTML-Options)</title> <title>html_options (Ausgabe von HTML-Options)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3573,13 +3573,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.html.radios"> <sect1 id="language.function.html.radios">
<title>html_radios (Ausgabe von HTML-RADIO Tags)</title> <title>html_radios (Ausgabe von HTML-RADIO Tags)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3688,13 +3688,13 @@ AUSGABE: (beider Beispiele)
<sect1 id="language.function.html.select.date"> <sect1 id="language.function.html.select.date">
<title>html_select_date (Ausgabe von Daten als HTML-'options')</title> <title>html_select_date (Ausgabe von Daten als HTML-'options')</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -3966,13 +3966,13 @@ AUSGABE: (aktuelles Jahr ist 2000)
</sect1> </sect1>
<sect1 id="language.function.html.select.time"> <sect1 id="language.function.html.select.time">
<title>html_select_time (Ausgabe von Zeiten als HTML-'options')</title> <title>html_select_time (Ausgabe von Zeiten als HTML-'options')</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -4261,13 +4261,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.html.table"> <sect1 id="language.function.html.table">
<title>html_table (Ausgabe von HTML-TABLE Tag)</title> <title>html_table (Ausgabe von HTML-TABLE Tag)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -4384,13 +4384,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.math"> <sect1 id="language.function.math">
<title>math (Mathematik)</title> <title>math (Mathematik)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -4538,13 +4538,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.popup"> <sect1 id="language.function.popup">
<title>popup (Popup-Inhalt definieren)</title> <title>popup (Popup-Inhalt definieren)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -4927,13 +4927,13 @@ AUSGABE:
</sect1> </sect1>
<sect1 id="language.function.textformat"> <sect1 id="language.function.textformat">
<title>textformat (Textformatierung)</title> <title>textformat (Textformatierung)</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribut Name</entry> <entry>Attribut Name</entry>
@@ -5259,4 +5259,4 @@ pass=foobar</programlisting>
</para> </para>
</note> </note>
</chapter> </chapter>
</part> </part>

View File

@@ -970,9 +970,9 @@
PHP-Callback-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt. PHP-Callback-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt.
</para> </para>
<para> <para>
Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
<para> <para>
@@ -984,7 +984,7 @@
/* PHP */ /* PHP */
$smarty->register_block("translate", "do_translation"); $smarty->register_block("translate", "do_translation");
function do_translation ($params, $content, &$smarty, &amp;$repeat) { function do_translation ($params, $content, &amp;$smarty, &amp;$repeat) {
if (isset($content)) { if (isset($content)) {
$lang = $params['lang']; $lang = $params['lang'];
@@ -1015,9 +1015,9 @@
PHP-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt. PHP-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt.
</para> </para>
<para> <para>
Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
<para> <para>
@@ -1041,9 +1041,9 @@
und den Namen der PHP-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt. und den Namen der PHP-Funktion, die die entsprechende Funktionalit&auml;t bereitstellt.
</para> </para>
<para> <para>
Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
<para> <para>
@@ -1081,9 +1081,9 @@
bereitstellt. bereitstellt.
</para> </para>
<para> <para>
Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>impl</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
<example> <example>
@@ -1131,9 +1131,9 @@
f&uuml;r mehr Informationen. f&uuml;r mehr Informationen.
</para> </para>
<para> <para>
Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
</sect1> </sect1>
@@ -1151,9 +1151,9 @@
Abschnitt <link linkend="advanced.features.postfilters">template postfilters</link>. Abschnitt <link linkend="advanced.features.postfilters">template postfilters</link>.
</para> </para>
<para> <para>
Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
</sect1> </sect1>
@@ -1171,9 +1171,9 @@
Abschnitt <link linkend="advanced.features.prefilters">'pre'-Filter</link>. Abschnitt <link linkend="advanced.features.prefilters">'pre'-Filter</link>.
</para> </para>
<para> <para>
Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&$object, $method)</literal>, Der Parameter <parameter>function</parameter> kann als (a) einen Funktionnamen oder (b) einem Array der Form <literal>array(&amp;$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, wobei <literal>&amp;$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> oder als Array der Form <literal>array(&amp;$class, $method)</literal>, wobei <literal>$class</literal> der Name der Klasse und <literal>$method</literal>
der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden. der Name der Methode ist die aufgerufen werden soll, &uuml;bergeben werden.
</para> </para>
</sect1> </sect1>
@@ -1687,7 +1687,7 @@ require('Smarty.class.php');
$smarty = new Smarty; $smarty = new Smarty;
$smarty->caching = true; $smarty->caching = true;
function remaining_seconds($params, &$smarty) { function remaining_seconds($params, &amp;$smarty) {
$remain = $params['endtime'] - time(); $remain = $params['endtime'] - time();
if ($remain >=0) if ($remain >=0)
return $remain . " second(s)"; return $remain . " second(s)";
@@ -1721,7 +1721,7 @@ require('Smarty.class.php');
$smarty = new Smarty; $smarty = new Smarty;
$smarty->caching = true; $smarty->caching = true;
function smarty_block_dynamic($param, $content, &$smarty) { function smarty_block_dynamic($param, $content, &amp;$smarty) {
return $content; return $content;
} }
$smarty->register_block('dynamic', 'smarty_block_dynamic', false); $smarty->register_block('dynamic', 'smarty_block_dynamic', false);
@@ -1785,8 +1785,8 @@ Um sicherzustellen dass ein Teil eines Templates nicht gecached werden soll, kan
sie erhalten also die 4 Parameter sie erhalten also die 4 Parameter
<parameter>$params</parameter>, <parameter>$params</parameter>,
<parameter>$content</parameter>, <parameter>$content</parameter>,
<parameter>&$smarty</parameter> und <parameter>&amp;$smarty</parameter> und
<parameter>&$repeat</parameter>, <parameter>&amp;$repeat</parameter>,
und verhalten sich auch sonst wie block-function-plugins. und verhalten sich auch sonst wie block-function-plugins.
</para> </para>
<example> <example>
@@ -1796,7 +1796,7 @@ Um sicherzustellen dass ein Teil eines Templates nicht gecached werden soll, kan
// das objekt // das objekt
class My_Object { class My_Object {
function meth1($params, &$smarty_obj) { function meth1($params, &amp;$smarty_obj) {
return "meine meth1"; return "meine meth1";
} }
} }
@@ -1846,7 +1846,7 @@ ausgabe war: {$output}
&lt;?php &lt;?php
// f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein // f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein
function remove_dw_comments($tpl_source, &$smarty) function remove_dw_comments($tpl_source, &amp;$smarty)
{ {
return preg_replace("/&lt;!--#.*--&gt;/U","",$tpl_source); return preg_replace("/&lt;!--#.*--&gt;/U","",$tpl_source);
} }
@@ -1880,7 +1880,7 @@ ausgabe war: {$output}
&lt;?php &lt;?php
// f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein // f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein
function add_header_comment($tpl_source, &$smarty) function add_header_comment($tpl_source, &amp;$smarty)
{ {
return "&lt;?php echo \"&lt;!-- Created by Smarty! --&gt;\n\" ?&gt;\n".$tpl_source; return "&lt;?php echo \"&lt;!-- Created by Smarty! --&gt;\n\" ?&gt;\n".$tpl_source;
} }
@@ -1921,7 +1921,7 @@ ausgabe war: {$output}
&lt;?php &lt;?php
// f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein // f&uuml;gen Sie folgende Zeilen in Ihre Applikation ein
function protect_email($tpl_output, &$smarty) function protect_email($tpl_output, &amp;$smarty)
{ {
$tpl_output = $tpl_output =
preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
@@ -1989,7 +1989,7 @@ ausgabe war: {$output}
*/ */
function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) function mysql_cache_handler($action, &amp;$smarty_obj, &amp;$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null)
{ {
// Datenbank Host, Benutzer und Passwort festlegen // Datenbank Host, Benutzer und Passwort festlegen
@@ -2019,7 +2019,7 @@ ausgabe war: {$output}
} }
$row = mysql_fetch_array($results,MYSQL_ASSOC); $row = mysql_fetch_array($results,MYSQL_ASSOC);
if($use_gzip && function_exists("gzuncompress")) { if($use_gzip &amp;&amp; function_exists("gzuncompress")) {
$cache_contents = gzuncompress($row["CacheContents"]); $cache_contents = gzuncompress($row["CacheContents"]);
} else { } else {
$cache_contents = $row["CacheContents"]; $cache_contents = $row["CacheContents"];
@@ -2029,7 +2029,7 @@ ausgabe war: {$output}
case 'write': case 'write':
// Cache in Datenbank speichern // Cache in Datenbank speichern
if($use_gzip && function_exists("gzcompress")) { if($use_gzip &amp;&amp; function_exists("gzcompress")) {
// compress the contents for storage efficiency // compress the contents for storage efficiency
$contents = gzcompress($cache_content); $contents = gzcompress($cache_content);
} else { } else {
@@ -2047,7 +2047,7 @@ ausgabe war: {$output}
case 'clear': case 'clear':
// Cache Informationen l&ouml;schen // Cache Informationen l&ouml;schen
if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { if(empty($cache_id) &amp;&amp; empty($compile_id) &amp;&amp; empty($tpl_file)) {
// alle l&ouml;schen // alle l&ouml;schen
$results = mysql_query("delete from CACHE_PAGES"); $results = mysql_query("delete from CACHE_PAGES");
@@ -2194,7 +2194,7 @@ ausgabe war: {$output}
} }
} }
function db_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) function db_get_timestamp($tpl_name, &amp;$tpl_timestamp, &amp;$smarty_obj)
{ {
// Datenbankabfrage um '$tpl_timestamp' zuzuweisen // Datenbankabfrage um '$tpl_timestamp' zuzuweisen
@@ -2210,14 +2210,14 @@ ausgabe war: {$output}
} }
} }
function db_get_secure($tpl_name, &$smarty_obj) function db_get_secure($tpl_name, &amp;$smarty_obj)
{ {
// angenommen alle Templates sind sicher // angenommen alle Templates sind sicher
return true; return true;
} }
function db_get_trusted($tpl_name, &$smarty_obj) function db_get_trusted($tpl_name, &amp;$smarty_obj)
{ {
// wird f&uuml;r Templates nicht verwendet // wird f&uuml;r Templates nicht verwendet
@@ -2416,7 +2416,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2606,7 +2606,7 @@ ausgabe war: {$output}
<funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>mixed <parameter>$content</parameter></paramdef> <paramdef>mixed <parameter>$content</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2696,7 +2696,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$tag_arg</parameter></paramdef> <paramdef>string <parameter>$tag_arg</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2725,7 +2725,7 @@ ausgabe war: {$output}
* the time it was compiled. * the time it was compiled.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_compiler_tplheader($tag_arg, &$smarty) function smarty_compiler_tplheader($tag_arg, &amp;$smarty)
{ {
return "\necho '" . $smarty-&gt;_current_file . " compiled at " . date('Y-m-d H:M'). "';"; return "\necho '" . $smarty-&gt;_current_file . " compiled at " . date('Y-m-d H:M'). "';";
} }
@@ -2759,7 +2759,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$source</parameter></paramdef> <paramdef>string <parameter>$source</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2774,7 +2774,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$compiled</parameter></paramdef> <paramdef>string <parameter>$compiled</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2796,7 +2796,7 @@ ausgabe war: {$output}
* Purpose: Convert html tags to be lowercase. * Purpose: Convert html tags to be lowercase.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_prefilter_pre01($source, &$smarty) function smarty_prefilter_pre01($source, &amp;$smarty)
{ {
return preg_replace('!&lt;(\w+)[^&gt;]+&gt;!e', 'strtolower("$1")', $source); return preg_replace('!&lt;(\w+)[^&gt;]+&gt;!e', 'strtolower("$1")', $source);
} }
@@ -2816,7 +2816,7 @@ ausgabe war: {$output}
* Purpose: Output code that lists all current template vars. * Purpose: Output code that lists all current template vars.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_postfilter_post01($compiled, &$smarty) function smarty_postfilter_post01($compiled, &amp;$smarty)
{ {
$compiled = "&lt;pre&gt;\n&lt;?php print_r(\$this-&gt;get_template_vars()); ?&gt;\n&lt;/pre&gt;" . $compiled; $compiled = "&lt;pre&gt;\n&lt;?php print_r(\$this-&gt;get_template_vars()); ?&gt;\n&lt;/pre&gt;" . $compiled;
return $compiled; return $compiled;
@@ -2834,7 +2834,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$template_output</parameter></paramdef> <paramdef>string <parameter>$template_output</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2855,7 +2855,7 @@ ausgabe war: {$output}
* a simple protection against spambots * a simple protection against spambots
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_outputfilter_protect_email($output, &$smarty) function smarty_outputfilter_protect_email($output, &amp;$smarty)
{ {
return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
'$1%40$2', $output); '$1%40$2', $output);
@@ -2881,24 +2881,24 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>string <parameter>&$source</parameter></paramdef> <paramdef>string <parameter>&amp;$source</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>int <parameter>&$timestamp</parameter></paramdef> <paramdef>int <parameter>&amp;$timestamp</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
@@ -3006,7 +3006,7 @@ ausgabe war: {$output}
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -3046,4 +3046,4 @@ ausgabe war: {$output}
</example> </example>
</sect1> </sect1>
</chapter> </chapter>
</part> </part>

View File

@@ -562,13 +562,13 @@ Police Begin Campaign To Rundown Jaywalkers.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.count.characters"> <sect1 id="language.modifier.count.characters">
<title>count_characters</title> <title>count_characters</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=6> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -616,13 +616,13 @@ Cold Wave Linked to Temperatures.
</sect1> </sect1>
<sect1 id="language.modifier.cat"> <sect1 id="language.modifier.cat">
<title>cat</title> <title>cat</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=cat align=center> <colspec colname="cat" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -744,13 +744,13 @@ Dealers Will Hear Car Talk at Noon.
</sect1> </sect1>
<sect1 id="language.modifier.date.format"> <sect1 id="language.modifier.date.format">
<title>date_format</title> <title>date_format</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -905,13 +905,13 @@ system's manpage for a full list of valid specifiers.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.default"> <sect1 id="language.modifier.default">
<title>default</title> <title>default</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -960,14 +960,14 @@ no title</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.escape"> <sect1 id="language.modifier.escape">
<title>escape</title> <title>escape</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=6> <tgroup cols="6">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=possible align=center> <colspec colname="possible" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1030,13 +1030,13 @@ href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74"&gt;&amp;#x62;&amp;#x6f;&amp;#x62;&a
</sect1> </sect1>
<sect1 id="language.modifier.indent"> <sect1 id="language.modifier.indent">
<title>indent</title> <title>indent</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1160,13 +1160,13 @@ Sun or rain expected&lt;br /&gt;today, dark tonight</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.regex.replace"> <sect1 id="language.modifier.regex.replace">
<title>regex_replace</title> <title>regex_replace</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1223,13 +1223,13 @@ Infertility unlikely to be passed on, experts say.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.replace"> <sect1 id="language.modifier.replace">
<title>replace</title> <title>replace</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1284,13 +1284,13 @@ Child's Stool Great for Use in Garden.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.spacify"> <sect1 id="language.modifier.spacify">
<title>spacify</title> <title>spacify</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1340,13 +1340,13 @@ S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^
</sect1> </sect1>
<sect1 id="language.modifier.string.format"> <sect1 id="language.modifier.string.format">
<title>string_format</title> <title>string_format</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1456,13 +1456,13 @@ Blind Woman Gets New Kidney from Dad she Hasn't Seen in years.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.truncate"> <sect1 id="language.modifier.truncate">
<title>truncate</title> <title>truncate</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1565,13 +1565,13 @@ IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.wordwrap"> <sect1 id="language.modifier.wordwrap">
<title>wordwrap</title> <title>wordwrap</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Parameter Position</entry> <entry>Parameter Position</entry>
@@ -1706,13 +1706,13 @@ s m o k e r s a r e p. . .</programlisting>
</para> </para>
<sect1 id="language.function.capture"> <sect1 id="language.function.capture">
<title>capture</title> <title>capture</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -1786,13 +1786,13 @@ s m o k e r s a r e p. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.config.load"> <sect1 id="language.function.config.load">
<title>config_load</title> <title>config_load</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -1904,13 +1904,13 @@ s m o k e r s a r e p. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.foreach"> <sect1 id="language.function.foreach">
<title>foreach,foreachelse</title> <title>foreach,foreachelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -2076,13 +2076,13 @@ cell: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include"> <sect1 id="language.function.include">
<title>include</title> <title>include</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -2178,13 +2178,13 @@ cell: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include.php"> <sect1 id="language.function.include.php">
<title>include_php</title> <title>include_php</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -2285,13 +2285,13 @@ index.tpl
</sect1> </sect1>
<sect1 id="language.function.insert"> <sect1 id="language.function.insert">
<title>insert</title> <title>insert</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -2411,7 +2411,7 @@ index.tpl
<emphasis>elseif</emphasis> are also permitted. "eq", "ne","neq", <emphasis>elseif</emphasis> are also permitted. "eq", "ne","neq",
"gt", "lt", "lte", "le", "gte" "ge","is even","is odd", "is not "gt", "lt", "lte", "le", "gte" "ge","is even","is odd", "is not
even","is not odd","not","mod","div by","even by","odd even","is not odd","not","mod","div by","even by","odd
by","==","!=",">", "<","<=",">=" are all valid conditional by","==","!=","&gt;", "&lt;","&lt;=","&gt;=" are all valid conditional
qualifiers, and must be separated from surrounding elements by qualifiers, and must be separated from surrounding elements by
spaces. spaces.
</para> </para>
@@ -2444,7 +2444,7 @@ index.tpl
{* parenthesis are allowed *} {* parenthesis are allowed *}
{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} {if ( $amount &lt; 0 or $amount &gt; 1000 ) and $volume >= #minVolAmt#}
... ...
{/if} {/if}
@@ -2553,13 +2553,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.section"> <sect1 id="language.function.section">
<title>section,sectionelse</title> <title>section,sectionelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3159,13 +3159,13 @@ OUTPUT:
</para> </para>
<sect1 id="language.function.assign"> <sect1 id="language.function.assign">
<title>assign</title> <title>assign</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3211,13 +3211,13 @@ The value of $name is Bob.</programlisting>
</sect1> </sect1>
<sect1 id="language.function.counter"> <sect1 id="language.function.counter">
<title>counter</title> <title>counter</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3308,13 +3308,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.cycle"> <sect1 id="language.function.cycle">
<title>cycle</title> <title>cycle</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3422,13 +3422,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.debug"> <sect1 id="language.function.debug">
<title>debug</title> <title>debug</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3460,13 +3460,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.eval"> <sect1 id="language.function.eval">
<title>eval</title> <title>eval</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3557,13 +3557,13 @@ You must supply a &lt;b&gt;state&lt;/b&gt;.
</sect1> </sect1>
<sect1 id="language.function.fetch"> <sect1 id="language.function.fetch">
<title>fetch</title> <title>fetch</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3642,13 +3642,13 @@ You must supply a &lt;b&gt;state&lt;/b&gt;.
</sect1> </sect1>
<sect1 id="language.function.html.checkboxes"> <sect1 id="language.function.html.checkboxes">
<title>html_checkboxes</title> <title>html_checkboxes</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3767,13 +3767,13 @@ OUTPUT: (both examples)
</sect1> </sect1>
<sect1 id="language.function.html.image"> <sect1 id="language.function.html.image">
<title>html_image</title> <title>html_image</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3888,13 +3888,13 @@ OUTPUT: (possible)
</sect1> </sect1>
<sect1 id="language.function.html.options"> <sect1 id="language.function.html.options">
<title>html_options</title> <title>html_options</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -3963,7 +3963,7 @@ OUTPUT: (possible)
All parameters that are not in the list above are printed as All parameters that are not in the list above are printed as
name/value-pairs inside the &lt;select&gt;-tag. They are ignored if name/value-pairs inside the &lt;select&gt;-tag. They are ignored if
the optional <emphasis>name</emphasis> is not given. the optional <emphasis>name</emphasis> is not given.
</para </para>
<example> <example>
<title>html_options</title> <title>html_options</title>
<programlisting> <programlisting>
@@ -4015,13 +4015,13 @@ OUTPUT: (both examples)
</sect1> </sect1>
<sect1 id="language.function.html.radios"> <sect1 id="language.function.html.radios">
<title>html_radios</title> <title>html_radios</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -4086,7 +4086,7 @@ OUTPUT: (both examples)
<para> <para>
All parameters that are not in the list above are printed as All parameters that are not in the list above are printed as
name/value-pairs inside each of the created &lt;input&gt;-tags. name/value-pairs inside each of the created &lt;input&gt;-tags.
</para </para>
<example> <example>
<title>html_radios</title> <title>html_radios</title>
@@ -4135,13 +4135,13 @@ OUTPUT: (both examples)
</sect1> </sect1>
<sect1 id="language.function.html.select.date"> <sect1 id="language.function.html.select.date">
<title>html_select_date</title> <title>html_select_date</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -4429,13 +4429,13 @@ OUTPUT: (current year is 2000)
</sect1> </sect1>
<sect1 id="language.function.html.select.time"> <sect1 id="language.function.html.select.time">
<title>html_select_time</title> <title>html_select_time</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -4730,13 +4730,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.html.table"> <sect1 id="language.function.html.table">
<title>html_table</title> <title>html_table</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -4857,13 +4857,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.math"> <sect1 id="language.function.math">
<title>math</title> <title>math</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -4981,13 +4981,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.mailto"> <sect1 id="language.function.mailto">
<title>mailto</title> <title>mailto</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -5137,13 +5137,13 @@ OUTPUT:
</sect1> </sect1>
<sect1 id="language.function.popup"> <sect1 id="language.function.popup">
<title>popup</title> <title>popup</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -5544,13 +5544,13 @@ text="&lt;UL&gt;&lt;LI&gt;links&lt;LI&gt;pages&lt;LI&gt;images&lt;/UL&gt;" snapx
</sect1> </sect1>
<sect1 id="language.function.textformat"> <sect1 id="language.function.textformat">
<title>textformat</title> <title>textformat</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Attribute Name</entry> <entry>Attribute Name</entry>
@@ -5881,4 +5881,4 @@ pass=foobar</programlisting>
</para> </para>
</note> </note>
</chapter> </chapter>
</part> </part>

View File

@@ -182,7 +182,7 @@ OUTPUT:
2001/01/04 2001/01/04
{if $date1 < $date2} {if $date1 &lt; $date2}
... ...
{/if}</programlisting> {/if}</programlisting>
</example> </example>
@@ -300,7 +300,7 @@ Pretty easy isn't it?
{php} {php}
// notre fonction pour r<>cup<75>rer les donn<6E>es // notre fonction pour r<>cup<75>rer les donn<6E>es
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// du traitement qui r<>cup<75>re $ticker_name // du traitement qui r<>cup<75>re $ticker_name
// $ticker_price // $ticker_price
} }
@@ -332,7 +332,7 @@ load_ticker.php
&lt;?php &lt;?php
// notre fonction pour r<>cup<75>rer les donn<6E>es // notre fonction pour r<>cup<75>rer les donn<6E>es
function fetch_ticker($symbol,&$ticker_name,&$ticker_price) { function fetch_ticker($symbol,&amp;$ticker_name,&amp;$ticker_price) {
// put logic here that fetches $ticker_name // put logic here that fetches $ticker_name
// and $ticker_price from some resource // and $ticker_price from some resource
} }

View File

@@ -551,13 +551,13 @@ Vagues de froid li
</sect1> </sect1>
<sect1 id="language.modifier.cat"> <sect1 id="language.modifier.cat">
<title>cat</title> <title>cat</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=cat align=center> <colspec colname="cat" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -680,13 +680,13 @@ Un anneau pour les gouverner tous.
</sect1> </sect1>
<sect1 id="language.modifier.date.format"> <sect1 id="language.modifier.date.format">
<title>date_format</title> <title>date_format</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -845,13 +845,13 @@ param
</sect1> </sect1>
<sect1 id="language.modifier.default"> <sect1 id="language.modifier.default">
<title>default</title> <title>default</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -900,14 +900,14 @@ pas de titre</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.escape"> <sect1 id="language.modifier.escape">
<title>escape</title> <title>escape</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=6> <tgroup cols="6">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=possible align=center> <colspec colname="possible" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -971,13 +971,13 @@ href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74"&gt;&amp;#x62;&amp;#x6f;&amp;#x62;&a
</sect1> </sect1>
<sect1 id="language.modifier.indent"> <sect1 id="language.modifier.indent">
<title>indent</title> <title>indent</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1094,13 +1094,13 @@ Pluie ou soleil attendu&lt;br /&gt;aujourd'hui, nuit noire</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.regex.replace"> <sect1 id="language.modifier.regex.replace">
<title>regex_replace</title> <title>regex_replace</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1157,13 +1157,13 @@ L'infertilit
</sect1> </sect1>
<sect1 id="language.modifier.replace"> <sect1 id="language.modifier.replace">
<title>replace</title> <title>replace</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1218,13 +1218,13 @@ Child's Stool Great for Use in Garden.</programlisting>
</sect1> </sect1>
<sect1 id="language.modifier.spacify"> <sect1 id="language.modifier.spacify">
<title>spacify</title> <title>spacify</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1275,13 +1275,13 @@ Q^^u^^e^^l^^q^^u^^e^^c^^h^^o^^s^^e^^ ^^s^^'^^e^^s^^t^^ ^^m^^a^^l^^ ^^p^^a^^s^^s^
</sect1> </sect1>
<sect1 id="language.modifier.string.format"> <sect1 id="language.modifier.string.format">
<title>string_format</title> <title>string_format</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1398,13 +1398,13 @@ qu'elle n'a pas vu depuis des ann
</sect1> </sect1>
<sect1 id="language.modifier.truncate"> <sect1 id="language.modifier.truncate">
<title>truncate</title> <title>truncate</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1510,13 +1510,13 @@ SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CELA RISQUE DE DURER LONGTEMPS.
</sect1> </sect1>
<sect1 id="language.modifier.wordwrap"> <sect1 id="language.modifier.wordwrap">
<title>wordwrap</title> <title>wordwrap</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param> <colspec colname="param" align="center" />
<colspec colname=type> <colspec colname="type" align="center" />
<colspec colname=required> <colspec colname="required" align="center" />
<colspec colname=default> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc"/>
<thead> <thead>
<row> <row>
<entry>Position du param<61>tre</entry> <entry>Position du param<61>tre</entry>
@@ -1709,13 +1709,13 @@ L e s f u m e u r s s. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.config.load"> <sect1 id="language.function.config.load">
<title>config_load</title> <title>config_load</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -1826,13 +1826,13 @@ L e s f u m e u r s s. . .</programlisting>
</sect1> </sect1>
<sect1 id="language.function.foreach"> <sect1 id="language.function.foreach">
<title>foreach,foreachelse</title> <title>foreach,foreachelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -1940,13 +1940,13 @@ portable: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include"> <sect1 id="language.function.include">
<title>include</title> <title>include</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -2042,13 +2042,13 @@ portable: 760-1234&lt;br&gt;</programlisting>
</sect1> </sect1>
<sect1 id="language.function.include.php"> <sect1 id="language.function.include.php">
<title>include_php</title> <title>include_php</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -2150,13 +2150,13 @@ index.tpl
</sect1> </sect1>
<sect1 id="language.function.insert"> <sect1 id="language.function.insert">
<title>insert</title> <title>insert</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -2279,7 +2279,7 @@ index.tpl
<emphasis>else</emphasis> et <emphasis>elseif</emphasis> sont <20>galement <emphasis>else</emphasis> et <emphasis>elseif</emphasis> sont <20>galement
des balises autoris<69>es. "eq", "ne","neq", "gt", "lt", "lte", "le", des balises autoris<69>es. "eq", "ne","neq", "gt", "lt", "lte", "le",
"gte" "ge","is even","is odd", "is not even","is not odd","not","mod", "gte" "ge","is even","is odd", "is not even","is not odd","not","mod",
"div by","even by","odd by","==","!=",">", "<","<=",">=" sont tous "div by","even by","odd by","==","!=","&gt;", "&lt;","&lt;=","&gt;=" sont tous
des op<6F>rateurs conditionnels valides, et doivent obligatoirement <20>tre des op<6F>rateurs conditionnels valides, et doivent obligatoirement <20>tre
s<>par<61>s des autres <20>l<EFBFBD>ments par des espaces. s<>par<61>s des autres <20>l<EFBFBD>ments par des espaces.
</para> </para>
@@ -2312,7 +2312,7 @@ index.tpl
{* les parenth<74>ses sont autoris<69>es *} {* les parenth<74>ses sont autoris<69>es *}
{if ( $amount < 0 or $amount > 1000 ) and $volume >= #minVolAmt#} {if ( $amount &lt; 0 or $amount &gt; 1000 ) and $volume &gt;= #minVolAmt#}
... ...
{/if} {/if}
@@ -2423,13 +2423,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.section"> <sect1 id="language.function.section">
<title>section,sectionelse</title> <title>section,sectionelse</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3033,13 +3033,13 @@ SORTIE:
</para> </para>
<sect1 id="language.function.assign"> <sect1 id="language.function.assign">
<title>assign</title> <title>assign</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3084,13 +3084,13 @@ La valeur de $name est Bob.</programlisting>
</sect1> </sect1>
<sect1 id="language.function.counter"> <sect1 id="language.function.counter">
<title>counter</title> <title>counter</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3181,13 +3181,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.cycle"> <sect1 id="language.function.cycle">
<title>cycle</title> <title>cycle</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3293,13 +3293,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.debug"> <sect1 id="language.function.debug">
<title>debug</title> <title>debug</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3332,13 +3332,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.eval"> <sect1 id="language.function.eval">
<title>eval</title> <title>eval</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3430,13 +3430,13 @@ Vous devez sp
</sect1> </sect1>
<sect1 id="language.function.fetch"> <sect1 id="language.function.fetch">
<title>fetch</title> <title>fetch</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3515,13 +3515,13 @@ Vous devez sp
</sect1> </sect1>
<sect1 id="language.function.html.checkboxes"> <sect1 id="language.function.html.checkboxes">
<title>html_checkboxes</title> <title>html_checkboxes</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3593,7 +3593,7 @@ Vous devez sp
<para> <para>
Tous les param<61>tres qui ne sont pas list<73>s ci-dessus sont affich<63>s Tous les param<61>tres qui ne sont pas list<73>s ci-dessus sont affich<63>s
en tant que paires nom/valeur dans chaque balise &lt;input&gt; cr<63>e. en tant que paires nom/valeur dans chaque balise &lt;input&gt; cr<63>e.
</para </para>
<example> <example>
<title>html_checkboxes</title> <title>html_checkboxes</title>
<programlisting> <programlisting>
@@ -3639,13 +3639,13 @@ SORTIE: (pour les deux exemples)
</sect1> </sect1>
<sect1 id="language.function.html.image"> <sect1 id="language.function.html.image">
<title>html_image</title> <title>html_image</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3752,13 +3752,13 @@ SORTIE: (possible)
</sect1> </sect1>
<sect1 id="language.function.html.options"> <sect1 id="language.function.html.options">
<title>html_options</title> <title>html_options</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3832,7 +3832,7 @@ SORTIE: (possible)
Tous les param<61>tres qui ne sont pas dans la liste ci-dessus sont Tous les param<61>tres qui ne sont pas dans la liste ci-dessus sont
affich<63>s en tant que paires nom / valeur. Ils sont ignor<6F>s si affich<63>s en tant que paires nom / valeur. Ils sont ignor<6F>s si
le param<61>tre optionnel <emphasis>name</emphasis> n'est pas donn<6E>. le param<61>tre optionnel <emphasis>name</emphasis> n'est pas donn<6E>.
</para </para>
<example> <example>
<title>html_options</title> <title>html_options</title>
<programlisting> <programlisting>
@@ -3884,13 +3884,13 @@ SORTIE: (valable pour les deux exemples)
</sect1> </sect1>
<sect1 id="language.function.html.radios"> <sect1 id="language.function.html.radios">
<title>html_radios</title> <title>html_radios</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -3961,7 +3961,7 @@ SORTIE: (valable pour les deux exemples)
Tous les param<61>tres qui ne sont pas dans la liste ci dessus sont Tous les param<61>tres qui ne sont pas dans la liste ci dessus sont
affich<63>s en tant que paires nom / valeur dans chaque balise &lt;input&gt; affich<63>s en tant que paires nom / valeur dans chaque balise &lt;input&gt;
cr<63><72>e. cr<63><72>e.
</para </para>
<example> <example>
<title>html_radios</title> <title>html_radios</title>
@@ -4010,13 +4010,13 @@ SORTIE: (both examples)
</sect1> </sect1>
<sect1 id="language.function.html.select.date"> <sect1 id="language.function.html.select.date">
<title>html_select_date</title> <title>html_select_date</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -4313,13 +4313,13 @@ SORTIE: (current year is 2000)
</sect1> </sect1>
<sect1 id="language.function.html.select.time"> <sect1 id="language.function.html.select.time">
<title>html_select_time</title> <title>html_select_time</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -4617,13 +4617,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.html.table"> <sect1 id="language.function.html.table">
<title>html_table</title> <title>html_table</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -4731,13 +4731,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.math"> <sect1 id="language.function.math">
<title>math</title> <title>math</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -4859,13 +4859,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.mailto"> <sect1 id="language.function.mailto">
<title>mailto</title> <title>mailto</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -5014,13 +5014,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.popup"> <sect1 id="language.function.popup">
<title>popup</title> <title>popup</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -5435,13 +5435,13 @@ SORTIE:
</sect1> </sect1>
<sect1 id="language.function.textformat"> <sect1 id="language.function.textformat">
<title>textformat</title> <title>textformat</title>
<informaltable frame=all> <informaltable frame="all">
<tgroup cols=5> <tgroup cols="5">
<colspec colname=param align=center> <colspec colname="param" align="center" />
<colspec colname=type align=center> <colspec colname="type" align="center" />
<colspec colname=required align=center> <colspec colname="required" align="center" />
<colspec colname=default align=center> <colspec colname="default" align="center" />
<colspec colname=desc> <colspec colname="desc" />
<thead> <thead>
<row> <row>
<entry>Nom attribut</entry> <entry>Nom attribut</entry>
@@ -5787,4 +5787,4 @@ pass=foobar</programlisting>
</para> </para>
</note> </note>
</chapter> </chapter>
</part> </part>

File diff suppressed because it is too large Load Diff

View File

@@ -32,4 +32,4 @@
&smarty.for.programmers; &smarty.for.programmers;
&appendixes; &appendixes;
</book> </book>

View File

@@ -1132,11 +1132,11 @@ $smarty->load_filter('output', 'compress'); // load output filter named 'compres
<para> <para>
The php-function callback <parameter>impl</parameter> can be either (a) a string The php-function callback <parameter>impl</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1150,7 +1150,7 @@ $smarty->load_filter('output', 'compress'); // load output filter named 'compres
/* PHP */ /* PHP */
$smarty->register_block("translate", "do_translation"); $smarty->register_block("translate", "do_translation");
function do_translation ($params, $content, &$smarty, &amp;$repeat) { function do_translation ($params, $content, &amp;$smarty, &amp;$repeat) {
if (isset($content)) { if (isset($content)) {
$lang = $params['lang']; $lang = $params['lang'];
// do some translation with $content // do some translation with $content
@@ -1182,11 +1182,11 @@ function do_translation ($params, $content, &$smarty, &amp;$repeat) {
<para> <para>
The php-function callback <parameter>impl</parameter> can be either (a) a string The php-function callback <parameter>impl</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1216,11 +1216,11 @@ function do_translation ($params, $content, &$smarty, &amp;$repeat) {
<para> <para>
The php-function callback <parameter>impl</parameter> can be either (a) a string The php-function callback <parameter>impl</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1261,11 +1261,11 @@ function print_current_date ($params) {
<para> <para>
The php-function callback <parameter>impl</parameter> can be either (a) a string The php-function callback <parameter>impl</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1317,11 +1317,11 @@ $smarty->register_modifier("sslash","stripslashes");
<para> <para>
The php-function callback <parameter>function</parameter> can be either (a) a string The php-function callback <parameter>function</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1344,11 +1344,11 @@ $smarty->register_modifier("sslash","stripslashes");
<para> <para>
The php-function callback <parameter>function</parameter> can be either (a) a string The php-function callback <parameter>function</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1371,11 +1371,11 @@ $smarty->register_modifier("sslash","stripslashes");
<para> <para>
The php-function callback <parameter>function</parameter> can be either (a) a string The php-function callback <parameter>function</parameter> can be either (a) a string
containing the function name or (b) an array of the form containing the function name or (b) an array of the form
<literal>array(&$object, $method)</literal> with <literal>array(&amp;$object, $method)</literal> with
<literal>&$object</literal> being a reference to an <literal>&amp;$object</literal> being a reference to an
object and <literal>$method</literal> being a string object and <literal>$method</literal> being a string
containing the mehod-name or (c) an array of the form containing the mehod-name or (c) an array of the form
<literal>array(&$class, $method)</literal> with <literal>array(&amp;$class, $method)</literal> with
<literal>$class</literal> being a classname and <literal>$class</literal> being a classname and
<literal>$method</literal> being a class method of that <literal>$method</literal> being a class method of that
class. class.
@@ -1903,7 +1903,7 @@ require('Smarty.class.php');
$smarty = new Smarty; $smarty = new Smarty;
$smarty->caching = true; $smarty->caching = true;
function remaining_seconds($params, &$smarty) { function remaining_seconds($params, &amp;$smarty) {
$remain = $params['endtime'] - time(); $remain = $params['endtime'] - time();
if ($remain >=0) if ($remain >=0)
return $remain . " second(s)"; return $remain . " second(s)";
@@ -1939,7 +1939,7 @@ require('Smarty.class.php');
$smarty = new Smarty; $smarty = new Smarty;
$smarty->caching = true; $smarty->caching = true;
function smarty_block_dynamic($param, $content, &$smarty) { function smarty_block_dynamic($param, $content, &amp;$smarty) {
return $content; return $content;
} }
$smarty->register_block('dynamic', 'smarty_block_dynamic', false); $smarty->register_block('dynamic', 'smarty_block_dynamic', false);
@@ -2009,8 +2009,8 @@ When reloading the page you will notice that both dates differ. One is "dynamic"
parameters for block-function-plugins: They get 4 parameters parameters for block-function-plugins: They get 4 parameters
<parameter>$params</parameter>, <parameter>$params</parameter>,
<parameter>$content</parameter>, <parameter>$content</parameter>,
<parameter>&$smarty</parameter> and <parameter>&amp;$smarty</parameter> and
<parameter>&$repeat</parameter> and they also behave like <parameter>&amp;$repeat</parameter> and they also behave like
block-function-plugins. block-function-plugins.
</para> </para>
<example> <example>
@@ -2020,7 +2020,7 @@ When reloading the page you will notice that both dates differ. One is "dynamic"
// the object // the object
class My_Object { class My_Object {
function meth1($params, &$smarty_obj) { function meth1($params, &amp;$smarty_obj) {
return "this is my meth1"; return "this is my meth1";
} }
} }
@@ -2072,7 +2072,7 @@ the output was {$output}
<programlisting> <programlisting>
&lt;?php &lt;?php
// put this in your application // put this in your application
function remove_dw_comments($tpl_source, &$smarty) function remove_dw_comments($tpl_source, &amp;$smarty)
{ {
return preg_replace("/&lt;!--#.*--&gt;/U","",$tpl_source); return preg_replace("/&lt;!--#.*--&gt;/U","",$tpl_source);
} }
@@ -2106,7 +2106,7 @@ $smarty->display("index.tpl");
<programlisting> <programlisting>
&lt;?php &lt;?php
// put this in your application // put this in your application
function add_header_comment($tpl_source, &$smarty) function add_header_comment($tpl_source, &amp;$smarty)
{ {
return "&lt;?php echo \"&lt;!-- Created by Smarty! --&gt;\n\" ?&gt;\n".$tpl_source; return "&lt;?php echo \"&lt;!-- Created by Smarty! --&gt;\n\" ?&gt;\n".$tpl_source;
} }
@@ -2147,7 +2147,7 @@ $smarty->display("index.tpl");
<programlisting> <programlisting>
&lt;?php &lt;?php
// put this in your application // put this in your application
function protect_email($tpl_output, &$smarty) function protect_email($tpl_output, &amp;$smarty)
{ {
$tpl_output = $tpl_output =
preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
@@ -2215,7 +2215,7 @@ CacheContents MEDIUMTEXT NOT NULL
*/ */
function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null) function mysql_cache_handler($action, &amp;$smarty_obj, &amp;$cache_content, $tpl_file=null, $cache_id=null, $compile_id=null)
{ {
// set db host, user and pass here // set db host, user and pass here
$db_host = 'localhost'; $db_host = 'localhost';
@@ -2242,7 +2242,7 @@ function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=n
} }
$row = mysql_fetch_array($results,MYSQL_ASSOC); $row = mysql_fetch_array($results,MYSQL_ASSOC);
if($use_gzip && function_exists("gzuncompress")) { if($use_gzip &amp;&amp; function_exists("gzuncompress")) {
$cache_contents = gzuncompress($row["CacheContents"]); $cache_contents = gzuncompress($row["CacheContents"]);
} else { } else {
$cache_contents = $row["CacheContents"]; $cache_contents = $row["CacheContents"];
@@ -2252,7 +2252,7 @@ function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=n
case 'write': case 'write':
// save cache to database // save cache to database
if($use_gzip && function_exists("gzcompress")) { if($use_gzip &amp;&amp; function_exists("gzcompress")) {
// compress the contents for storage efficiency // compress the contents for storage efficiency
$contents = gzcompress($cache_content); $contents = gzcompress($cache_content);
} else { } else {
@@ -2269,7 +2269,7 @@ function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tpl_file=n
break; break;
case 'clear': case 'clear':
// clear cache info // clear cache info
if(empty($cache_id) && empty($compile_id) && empty($tpl_file)) { if(empty($cache_id) &amp;&amp; empty($compile_id) &amp;&amp; empty($tpl_file)) {
// clear them all // clear them all
$results = mysql_query("delete from CACHE_PAGES"); $results = mysql_query("delete from CACHE_PAGES");
} else { } else {
@@ -2425,13 +2425,13 @@ function db_get_timestamp($tpl_name, &amp;$tpl_timestamp, &amp;$smarty_obj)
} }
} }
function db_get_secure($tpl_name, &$smarty_obj) function db_get_secure($tpl_name, &amp;$smarty_obj)
{ {
// assume all templates are secure // assume all templates are secure
return true; return true;
} }
function db_get_trusted($tpl_name, &$smarty_obj) function db_get_trusted($tpl_name, &amp;$smarty_obj)
{ {
// not used for templates // not used for templates
} }
@@ -2493,7 +2493,7 @@ $smarty->default_template_handler_func = 'make_template';
<para> <para>
Version 2.0 introduced the plugin architecture that is used Version 2.0 introduced the plugin architecture that is used
for almost all the customizable functionality of Smarty. This includes: for almost all the customizable functionality of Smarty. This includes:
<itemizedlist spacing=compact> <itemizedlist spacing="compact">
<listitem><simpara>functions</simpara></listitem> <listitem><simpara>functions</simpara></listitem>
<listitem><simpara>modifiers</simpara></listitem> <listitem><simpara>modifiers</simpara></listitem>
<listitem><simpara>block functions</simpara></listitem> <listitem><simpara>block functions</simpara></listitem>
@@ -2553,7 +2553,7 @@ $smarty->default_template_handler_func = 'make_template';
</para> </para>
<para> <para>
Where <literal>type</literal> is one of these plugin types: Where <literal>type</literal> is one of these plugin types:
<itemizedlist spacing=compact> <itemizedlist spacing="compact">
<listitem><simpara>function</simpara></listitem> <listitem><simpara>function</simpara></listitem>
<listitem><simpara>modifier</simpara></listitem> <listitem><simpara>modifier</simpara></listitem>
<listitem><simpara>block</simpara></listitem> <listitem><simpara>block</simpara></listitem>
@@ -2626,7 +2626,7 @@ require_once $smarty->_get_plugin_filepath('function', 'html_options');</program
<funcprototype> <funcprototype>
<funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef> <funcdef>void <function>smarty_function_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2816,7 +2816,7 @@ function smarty_modifier_truncate($string, $length = 80, $etc = '...',
<funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef> <funcdef>void <function>smarty_block_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>mixed <parameter>$content</parameter></paramdef> <paramdef>mixed <parameter>$content</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2914,7 +2914,7 @@ function smarty_block_translate($params, $content, &amp;$smarty)
<funcprototype> <funcprototype>
<funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef> <funcdef>mixed <function>smarty_compiler_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$tag_arg</parameter></paramdef> <paramdef>string <parameter>$tag_arg</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2942,7 +2942,7 @@ function smarty_block_translate($params, $content, &amp;$smarty)
* the time it was compiled. * the time it was compiled.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_compiler_tplheader($tag_arg, &$smarty) function smarty_compiler_tplheader($tag_arg, &amp;$smarty)
{ {
return "\necho '" . $smarty-&gt;_current_file . " compiled at " . date('Y-m-d H:M'). "';"; return "\necho '" . $smarty-&gt;_current_file . " compiled at " . date('Y-m-d H:M'). "';";
} }
@@ -2974,7 +2974,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_prefilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$source</parameter></paramdef> <paramdef>string <parameter>$source</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -2988,7 +2988,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_postfilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$compiled</parameter></paramdef> <paramdef>string <parameter>$compiled</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -3012,7 +3012,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
* Purpose: Convert html tags to be lowercase. * Purpose: Convert html tags to be lowercase.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_prefilter_pre01($source, &$smarty) function smarty_prefilter_pre01($source, &amp;$smarty)
{ {
return preg_replace('!&lt;(\w+)[^&gt;]+&gt;!e', 'strtolower("$1")', $source); return preg_replace('!&lt;(\w+)[^&gt;]+&gt;!e', 'strtolower("$1")', $source);
} }
@@ -3032,7 +3032,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
* Purpose: Output code that lists all current template vars. * Purpose: Output code that lists all current template vars.
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_postfilter_post01($compiled, &$smarty) function smarty_postfilter_post01($compiled, &amp;$smarty)
{ {
$compiled = "&lt;pre&gt;\n&lt;?php print_r(\$this-&gt;get_template_vars()); ?&gt;\n&lt;/pre&gt;" . $compiled; $compiled = "&lt;pre&gt;\n&lt;?php print_r(\$this-&gt;get_template_vars()); ?&gt;\n&lt;/pre&gt;" . $compiled;
return $compiled; return $compiled;
@@ -3050,7 +3050,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_outputfilter_<replaceable>name</replaceable></function></funcdef>
<paramdef>string <parameter>$template_output</parameter></paramdef> <paramdef>string <parameter>$template_output</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -3072,7 +3072,7 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
* a simple protection against spambots * a simple protection against spambots
* ------------------------------------------------------------- * -------------------------------------------------------------
*/ */
function smarty_outputfilter_protect_email($output, &$smarty) function smarty_outputfilter_protect_email($output, &amp;$smarty)
{ {
return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!', return preg_replace('!(\S+)@([a-zA-Z0-9\.\-]+\.([a-zA-Z]{2,3}|[0-9]{1,3}))!',
'$1%40$2', $output); '$1%40$2', $output);
@@ -3099,24 +3099,24 @@ echo 'index.tpl compiled at 2002-02-20 20:02';
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_source</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>string <parameter>&$source</parameter></paramdef> <paramdef>string <parameter>&amp;$source</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_timestamp</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>int <parameter>&$timestamp</parameter></paramdef> <paramdef>int <parameter>&amp;$timestamp</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_secure</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
<funcprototype> <funcprototype>
<funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef> <funcdef>bool <function>smarty_resource_<replaceable>name</replaceable>_trusted</function></funcdef>
<paramdef>string <parameter>$rsrc_name</parameter></paramdef> <paramdef>string <parameter>$rsrc_name</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
@@ -3226,7 +3226,7 @@ function smarty_resource_db_trusted($tpl_name, &amp;$smarty)
<funcprototype> <funcprototype>
<funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef> <funcdef>string <function>smarty_insert_<replaceable>name</replaceable></function></funcdef>
<paramdef>array <parameter>$params</parameter></paramdef> <paramdef>array <parameter>$params</parameter></paramdef>
<paramdef>object <parameter>&$smarty</parameter></paramdef> <paramdef>object <parameter>&amp;$smarty</parameter></paramdef>
</funcprototype> </funcprototype>
</funcsynopsis> </funcsynopsis>
<para> <para>
@@ -3268,4 +3268,4 @@ function smarty_insert_time($params, &amp;$smarty)
</example> </example>
</sect1> </sect1>
</chapter> </chapter>
</part> </part>