mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
Sync, updated status, Ctags, added missing infotables.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||||
<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">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.foreach">
|
<sect1 id="language.function.foreach">
|
||||||
<title>foreach,foreachelse</title>
|
<title>foreach,foreachelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.if">
|
<sect1 id="language.function.if">
|
||||||
<title>if,elseif,else</title>
|
<title>if,elseif,else</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -15,6 +15,123 @@
|
|||||||
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>
|
||||||
|
<para>
|
||||||
|
La liste suivante pr<70>sente les op<6F>rateurs reconnus, qui doivent <20>tre entour<75>s d'espaces.
|
||||||
|
Remarquez que les <20>l<EFBFBD>ments list<73>s entre [crochets] sont optionnels. Les <20>quivalents
|
||||||
|
PHP sont indiqu<71>s lorsque applicables.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<informaltable frame="all">
|
||||||
|
<tgroup cols="4">
|
||||||
|
<colspec colname="qualifier" align="center" />
|
||||||
|
<colspec colname="alternates" align="center" />
|
||||||
|
<colspec colname="meaning" />
|
||||||
|
<colspec colname="example" />
|
||||||
|
<colspec colname="php" />
|
||||||
|
<thead>
|
||||||
|
<row>
|
||||||
|
<entry>Qualifier</entry>
|
||||||
|
<entry>Alternates</entry>
|
||||||
|
<entry>Syntax Example</entry>
|
||||||
|
<entry>Meaning</entry>
|
||||||
|
<entry>PHP Equivalent</entry>
|
||||||
|
</row>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<row>
|
||||||
|
<entry>==</entry>
|
||||||
|
<entry>eq</entry>
|
||||||
|
<entry>$a eq $b</entry>
|
||||||
|
<entry>equals</entry>
|
||||||
|
<entry>==</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>!=</entry>
|
||||||
|
<entry>ne, neq</entry>
|
||||||
|
<entry>$a neq $b</entry>
|
||||||
|
<entry>not equals</entry>
|
||||||
|
<entry>!=</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>></entry>
|
||||||
|
<entry>gt</entry>
|
||||||
|
<entry>$a gt $b</entry>
|
||||||
|
<entry>greater than</entry>
|
||||||
|
<entry>></entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><</entry>
|
||||||
|
<entry>lt</entry>
|
||||||
|
<entry>$a lt $b</entry>
|
||||||
|
<entry>less than</entry>
|
||||||
|
<entry><</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>>=</entry>
|
||||||
|
<entry>gte, ge</entry>
|
||||||
|
<entry>$a ge $b</entry>
|
||||||
|
<entry>greater than or equal</entry>
|
||||||
|
<entry>>=</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><=</entry>
|
||||||
|
<entry>lte, le</entry>
|
||||||
|
<entry>$a le $b</entry>
|
||||||
|
<entry>less than or equal</entry>
|
||||||
|
<entry><=</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>!</entry>
|
||||||
|
<entry>not</entry>
|
||||||
|
<entry>not $a</entry>
|
||||||
|
<entry>negation (unary)</entry>
|
||||||
|
<entry>!</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>%</entry>
|
||||||
|
<entry>mod</entry>
|
||||||
|
<entry>$a mod $b</entry>
|
||||||
|
<entry>modulous</entry>
|
||||||
|
<entry>%</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>is [not] div by</entry>
|
||||||
|
<entry></entry>
|
||||||
|
<entry>$a is not div by 4</entry>
|
||||||
|
<entry>divisible by</entry>
|
||||||
|
<entry>$a % $b == 0</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>is [not] even</entry>
|
||||||
|
<entry></entry>
|
||||||
|
<entry>$a is not even</entry>
|
||||||
|
<entry>[not] an even number (unary)</entry>
|
||||||
|
<entry>$a % 2 == 0</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>is [not] even by</entry>
|
||||||
|
<entry></entry>
|
||||||
|
<entry>$a is not even by $b</entry>
|
||||||
|
<entry>grouping level [not] even</entry>
|
||||||
|
<entry>($a / $b) % 2 == 0</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>is [not] odd</entry>
|
||||||
|
<entry></entry>
|
||||||
|
<entry>$a is not odd</entry>
|
||||||
|
<entry>[not] an odd number (unary)</entry>
|
||||||
|
<entry>$a % 2 != 0</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry>is [not] odd by</entry>
|
||||||
|
<entry></entry>
|
||||||
|
<entry>$a is not odd by $b</entry>
|
||||||
|
<entry>[not] an odd grouping</entry>
|
||||||
|
<entry>($a / $b) % 2 != 0</entry>
|
||||||
|
</row>
|
||||||
|
</tbody>
|
||||||
|
</tgroup>
|
||||||
|
</informaltable>
|
||||||
<example>
|
<example>
|
||||||
<title>Instruction if</title>
|
<title>Instruction if</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<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">
|
||||||
@@ -46,6 +46,20 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
|
<note>
|
||||||
|
<title>Technical Note</title>
|
||||||
|
<para>
|
||||||
|
include_php est presque obsol<6F>te dans Smarty. Vous pouvez obtenir des r<>sultats
|
||||||
|
<20>quivalents en utilisant les fonctions utilisateur.
|
||||||
|
La seule raison qui peut vous pousser <20> utiliser include_php est que
|
||||||
|
vous avez besoin de mettre une de vos fonction en quarantaine vis <20> vis du
|
||||||
|
r<>pertoire des plugins ou de votre application. Reportez vous <20>
|
||||||
|
l'exemple des <link
|
||||||
|
linkend="tips.componentized.templates"> templates composants</links>
|
||||||
|
pour plus de d<>tails.
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
les balises include_php sont utilis<69>es pour inclure directement
|
les balises include_php sont utilis<69>es pour inclure directement
|
||||||
un script PHP dans vos templates. Si "security" est activ<69>, alors le script
|
un script PHP dans vos templates. Si "security" est activ<69>, alors le script
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.include">
|
<sect1 id="language.function.include">
|
||||||
<title>include</title>
|
<title>include</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.insert">
|
<sect1 id="language.function.insert">
|
||||||
<title>insert</title>
|
<title>insert</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.ldelim">
|
<sect1 id="language.function.ldelim">
|
||||||
<title>ldelim,rdelim</title>
|
<title>ldelim,rdelim</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
SORTIE:
|
SORTIE:
|
||||||
|
|
||||||
{nomFonction} est la fa<66>on dont sont appel<65>es les fonctions dans Smarty !</programlisting>
|
{nomFonction} est la fa<66>on dont sont appel<65>es les fonctions dans Smarty !
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.literal">
|
<sect1 id="language.function.literal">
|
||||||
<title>literal</title>
|
<title>literal</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.php">
|
<sect1 id="language.function.php">
|
||||||
<title>php</title>
|
<title>php</title>
|
||||||
<para>
|
<para>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||||
<sect1 id="language.function.section">
|
<sect1 id="language.function.section">
|
||||||
<title>section,sectionelse</title>
|
<title>section,sectionelse</title>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
<!-- EN-Revision: 1.2 Maintainer: gerlad Status: ready -->
|
||||||
<sect1 id="language.function.strip">
|
<sect1 id="language.function.strip">
|
||||||
<title>strip</title>
|
<title>strip</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -30,21 +30,24 @@
|
|||||||
<programlisting>
|
<programlisting>
|
||||||
{* la suite sera affich<63>e sur une seule ligne *}
|
{* la suite sera affich<63>e sur une seule ligne *}
|
||||||
{strip}
|
{strip}
|
||||||
<table border=0>
|
<![CDATA[
|
||||||
<tr>
|
<table border=0>
|
||||||
<td>
|
<tr>
|
||||||
<A HREF="{$url}">
|
<td>
|
||||||
<font color="red">Un test</font>
|
<A HREF="{$url}">
|
||||||
</A>
|
<font color="red">Un test</font>
|
||||||
</td>
|
</A>
|
||||||
</tr>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
|
</table>
|
||||||
{/strip}
|
{/strip}
|
||||||
|
|
||||||
|
|
||||||
SORTIE:
|
SORTIE:
|
||||||
|
|
||||||
<table border=0><tr><td><A HREF="http://mon.domaine.com"><font color="red">Un test</font></A></td></tr></table></programlisting>
|
<table border=0><tr><td><A HREF="http://mon.domaine.com"><font color="red">Un test</font></A></td></tr></table>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Notez que dans l'exemple ci-dessus, toutes les lignes commencent et
|
Notez que dans l'exemple ci-dessus, toutes les lignes commencent et
|
||||||
|
Reference in New Issue
Block a user