svn: /phpdoc/fr/trunk/ language/constants.xml language/types/string.xml language/wrappers/php.xml reference/reflection/reflectionclass/getmethod.xml
| From: | Yannick Torres | Date: | Wed, 19 Oct 2011 17:15:55 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/ language/constants.xml language/types/string.xml language/wrappers/php.xml reference/reflection/reflectionclass/getmethod.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-8854@lists.php.net to get a copy of this message | ||
yannick Wed, 19 Oct 2011 17:15:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=318228
Log:
sync with EN
Changed paths:
U phpdoc/fr/trunk/language/constants.xml
U phpdoc/fr/trunk/language/types/string.xml
U phpdoc/fr/trunk/language/wrappers/php.xml
U phpdoc/fr/trunk/reference/reflection/reflectionclass/getmethod.xml
Modified: phpdoc/fr/trunk/language/constants.xml
===================================================================
--- phpdoc/fr/trunk/language/constants.xml 2011-10-19 17:09:35 UTC (rev 318227)
+++ phpdoc/fr/trunk/language/constants.xml 2011-10-19 17:15:55 UTC (rev 318228)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 316819 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 318176 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<chapter xml:id="language.constants" xmlns="http://docbook.org/ns/docbook">
@@ -258,9 +258,21 @@
comme il a été déclaré (sensible à la casse). Le nom de la
classe contient l'espace de nom dans lequel cette classe
a été déclarée (i.e. <literal>Foo\Bar</literal>).
+ Notez que depuis PHP 5.4, __CLASS__ fonctionne aussi en Traits.
+ Lorsqu'une méthode Trait est utilisée, __CLASS__ est le nom
+ de la classe que Trait utilise en interne.
</entry>
</row>
<row>
+ <entry><constant>__TRAIT__</constant></entry>
+ <entry>
+ Le nom Trait (Ajouté en PHP 5.4.0). Depuis PHP 5.4,
+ cette constante retourne le Trait comme il a été déclaré
+ (sensible à la casse). Le nom Trait inclut l'espace de nom
+ dans lequel il a été déclaré (e.g. <literal>Foo\Bar</literal>).
+ </entry>
+ </row>
+ <row>
<entry><constant>__METHOD__</constant></entry>
<entry>
Le nom de la méthode courante. Le nom de la
Modified: phpdoc/fr/trunk/language/types/string.xml
===================================================================
--- phpdoc/fr/trunk/language/types/string.xml 2011-10-19 17:09:35 UTC (rev 318227)
+++ phpdoc/fr/trunk/language/types/string.xml 2011-10-19 17:15:55 UTC (rev 318228)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 316504 Maintainer: jpauli Status: ready -->
+<!-- EN-Revision: 318169 Maintainer: jpauli Status: ready -->
<!-- Reviewed: no -->
<sect1 xml:id="language.types.string">
@@ -465,10 +465,11 @@
typique est l'initialisation de proriétés ou de constantes
de classe :
</para>
-
- <example>
- <title>Exemple avec des données statiques</title>
- <programlisting role="php">
+ </note>
+
+ <example>
+ <title>Exemple avec des données statiques</title>
+ <programlisting role="php">
<![CDATA[
<?php
class foo {
@@ -478,9 +479,8 @@
}
?>
]]>
- </programlisting>
- </example>
- </note>
+ </programlisting>
+ </example>
<note>
<para>
@@ -529,7 +529,8 @@
$juice = "pomme";
echo "Il a bu du jus de $juice.".PHP_EOL;
-echo "Il a bu du jus constitué de $juices."; // Invalide. "s" est un
caractère valide de nom de variable, mais la variable est $juice.
+// Invalide. "s" est un caractère valide de nom de variable, mais la variable est
$juice.
+echo "Il a bu du jus constitué de $juices.";
?>
]]>
</programlisting>
@@ -694,8 +695,10 @@
</programlisting>
&example.outputs;
<screen>
- I am bar.
- I am bar.
+<![CDATA[
+I am bar.
+I am bar.
+]]>
</screen>
</informalexample>
@@ -1002,7 +1005,7 @@
</para>
</sect2>
-
+
<sect2 xml:id="language.types.string.details">
<title>Détails sur le type "chaîne de caractères"</title>
@@ -1096,7 +1099,7 @@
</simpara>
</listitem>
</itemizedlist>
-
+
<para>
Pour conclure, le fait d'écrire un programme correct en utilisant Unicode
dépend de l'utilisation ou non de fonctions qui ne fonctionnent pas en Unicode,
Modified: phpdoc/fr/trunk/language/wrappers/php.xml
===================================================================
--- phpdoc/fr/trunk/language/wrappers/php.xml 2011-10-19 17:09:35 UTC (rev 318227)
+++ phpdoc/fr/trunk/language/wrappers/php.xml 2011-10-19 17:15:55 UTC (rev 318228)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 317663 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 318227 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="wrappers.php" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
role="noversion">
@@ -93,7 +93,9 @@
ces deux flux est que <filename>php://memory</filename> autorise la sauvegarde
des données en mémoire, alors que <filename>php://temp</filename> utilisera un
fichier temporaire une fois que la quantité de données sauvegardées aura dépassée
- une limite prédéfinie (par défaut, 2 Mo).
+ une limite prédéfinie (par défaut, 2 Mo). L'endroit de stockage
+ de ce fichier temporaire est déterminé de la même manière que pour
+ la fonction <function>sys_get_temp_dir</function>.
</simpara>
<simpara>
La limite mémoire de <filename>php://temp</filename> peut être contrôlé
Modified: phpdoc/fr/trunk/reference/reflection/reflectionclass/getmethod.xml
===================================================================
--- phpdoc/fr/trunk/reference/reflection/reflectionclass/getmethod.xml 2011-10-19 17:09:35 UTC (rev
318227)
+++ phpdoc/fr/trunk/reference/reflection/reflectionclass/getmethod.xml 2011-10-19 17:15:55 UTC (rev
318228)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 290998 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 318215 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="reflectionclass.getmethod" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -12,7 +12,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>public</modifier>
<type>object</type><methodname>ReflectionClass::getMethod</methodname>
+ <modifier>public</modifier>
<type>ReflectionMethod</type><methodname>ReflectionClass::getMethod</methodname>
<methodparam><type>string</type><parameter>name</parameter></methodparam>
</methodsynopsis>
<para>