cvs: phpdoc-fr /reference/apache/functions apache-setenv.xml getallheaders.xml /reference/apc ini.xml /reference/apc/functions apc-fetch.xml
/reference/array/functions array-count-values.xml array-fill.xml array-key-exists.xml array-map.xml each.xml end.xml extract.xml sort.xml uksort.xml
/reference/bbcode constants.xml /reference/classobj/functions get-object-vars.xml method-exists.xml property-exists.xml
| From: | Yannick Torres | Date: | Sat, 29 Nov 2008 19:07:29 +0000 |
| Subject: | cvs: phpdoc-fr /reference/apache/functions apache-setenv.xml getallheaders.xml /reference/apc ini.xml /reference/apc/functions apc-fetch.xml /reference/array/functions array-count-values.xml array-fill.xml array-key-exists.xml array-map.xml each.xml end.xml extract.xml sort.xml uksort.xml /reference/bbcode constants.xml /reference/classobj/functions get-object-vars.xml method-exists.xml property-exists.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6128@lists.php.net to get a copy of this message | ||
yannick Sat Nov 29 19:07:29 2008 UTC
Modified files:
/phpdoc-fr/reference/apache/functions apache-setenv.xml
getallheaders.xml
/phpdoc-fr/reference/apc/functions apc-fetch.xml
/phpdoc-fr/reference/apc ini.xml
/phpdoc-fr/reference/array/functions array-count-values.xml
array-fill.xml
array-key-exists.xml
array-map.xml each.xml end.xml
extract.xml sort.xml
uksort.xml
/phpdoc-fr/reference/bbcode constants.xml
/phpdoc-fr/reference/classobj/functions get-object-vars.xml
method-exists.xml
property-exists.xml
Log:
sync with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-setenv.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-setenv.xml diff -u phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.16 phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.17 --- phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.16 Sun Jun 8 19:52:15 2008 +++ phpdoc-fr/reference/apache/functions/apache-setenv.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-setenv" xmlns="http://docbook.org/ns/docbook"> @@ -24,7 +24,7 @@ <note> <para> Lors de la définition d'une variable d'environnement Apache, la variable - <link linkend="reserved.variables.server">$_SERVER</link> + <varname>$_SERVER</varname> correspondante n'est pas modifiée. </para> </note> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/getallheaders.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/reference/apache/functions/getallheaders.xml diff -u phpdoc-fr/reference/apache/functions/getallheaders.xml:1.19 phpdoc-fr/reference/apache/functions/getallheaders.xml:1.20 --- phpdoc-fr/reference/apache/functions/getallheaders.xml:1.19 Mon Feb 25 08:42:01 2008 +++ phpdoc-fr/reference/apache/functions/getallheaders.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.getallheaders" xmlns="http://docbook.org/ns/docbook"> @@ -65,7 +65,7 @@ &reftitle.examples; <para> <example> - <title>Exemple avec <function>getallheadres</function></title> + <title>Exemple avec <function>getallheaders</function></title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apc/functions/apc-fetch.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/apc/functions/apc-fetch.xml diff -u phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.6 phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.7 --- phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.6 Mon Feb 25 14:02:04 2008 +++ phpdoc-fr/reference/apc/functions/apc-fetch.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apc-fetch" xmlns="http://docbook.org/ns/docbook"> @@ -15,6 +15,7 @@ <methodsynopsis> <type>mixed</type><methodname>apc_fetch</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter role="reference">success</parameter></methodparam> </methodsynopsis> <para> Récupère une variable stockée dans le cache. @@ -33,6 +34,14 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>success</parameter></term> + <listitem> + <para> + Vaut &true; en cas de succès, et &false; si une erreur survient. + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apc/ini.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/apc/ini.xml diff -u phpdoc-fr/reference/apc/ini.xml:1.20 phpdoc-fr/reference/apc/ini.xml:1.21 --- phpdoc-fr/reference/apc/ini.xml:1.20 Wed Jun 11 10:03:02 2008 +++ phpdoc-fr/reference/apc/ini.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <section xml:id="apc.configuration" xmlns="http://docbook.org/ns/docbook"> @@ -208,6 +208,12 @@ <entry>PHP_INI_SYSTEM</entry> <entry>Disponible depuis APC 3.0.16.</entry> </row> + <row> + <entry>apc.stat_ctime</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + <entry>Disponible depuis APC 3.0.13.</entry> + </row> </tbody> </tgroup> </table> @@ -719,6 +725,21 @@ </listitem> </varlistentry> + <varlistentry xml:id="ini.apc.stat_ctime"> + <term> + <parameter>apc.stat_ctime</parameter> + <type>integer</type> + </term> + <listitem> + <para> + Une vérification avec ctime prévient les problèmes causés par des + programmes comme svn ou rsync en s'assurant que les inodes n'ont pas + été modifiées depuis le dernier appel à stat. APC, normalement, + n'utilise que mtime pour cela. + </para> + </listitem> + </varlistentry> + </variablelist> </para> </section> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-count-values.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/array/functions/array-count-values.xml diff -u phpdoc-fr/reference/array/functions/array-count-values.xml:1.20 phpdoc-fr/reference/array/functions/array-count-values.xml:1.21 --- phpdoc-fr/reference/array/functions/array-count-values.xml:1.20 Sat Jul 21 06:10:21 2007 +++ phpdoc-fr/reference/array/functions/array-count-values.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.array-count-values" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-fill.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc-fr/reference/array/functions/array-fill.xml diff -u phpdoc-fr/reference/array/functions/array-fill.xml:1.25 phpdoc-fr/reference/array/functions/array-fill.xml:1.26 --- phpdoc-fr/reference/array/functions/array-fill.xml:1.25 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/array-fill.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook"> @@ -125,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>array_fill_keys</function></member> <member><function>str_repeat</function></member> <member><function>range</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-key-exists.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc-fr/reference/array/functions/array-key-exists.xml diff -u phpdoc-fr/reference/array/functions/array-key-exists.xml:1.25 phpdoc-fr/reference/array/functions/array-key-exists.xml:1.26 --- phpdoc-fr/reference/array/functions/array-key-exists.xml:1.25 Sun Jun 8 19:52:16 2008 +++ phpdoc-fr/reference/array/functions/array-key-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-key-exists"> @@ -21,8 +21,7 @@ clé du nom de <parameter>key</parameter> dans le tableau <parameter>search</parameter>. <parameter>key</parameter> peut être n'importe quelle valeur valide d'index - de tableau. <function>array_key_exists</function> fonctionne - également sur les objets. + de tableau. </para> </refsect1> @@ -57,6 +56,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction ne fonctionne plus avec les objets. La fonction + <function>property_exists</function> doit être utilisée dans ce cas. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -110,6 +134,7 @@ <member><function>isset</function></member> <member><function>array_keys</function></member> <member><function>in_array</function></member> + <member><function>property_exists</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-map.xml?r1=1.27&r2=1.28&diff_format=u Index: phpdoc-fr/reference/array/functions/array-map.xml diff -u phpdoc-fr/reference/array/functions/array-map.xml:1.27 phpdoc-fr/reference/array/functions/array-map.xml:1.28 --- phpdoc-fr/reference/array/functions/array-map.xml:1.27 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/array-map.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.27 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.28 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-map"> @@ -106,6 +106,34 @@ ]]> </screen> </example> + <example> + <title><function>array_map</function> - Utilisation d'une fonction quelconque (depuis PHP 5.3.0)</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* Depuis PHP 5.3.0 */ + +$func = function($value) { return $value * 2; }; + +print_r(array_map($func, range(1, 5))); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Array +( + [0] => 2 + [1] => 4 + [2] => 6 + [3] => 8 + [4] => 10 +) +]]> + </screen> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/each.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-fr/reference/array/functions/each.xml diff -u phpdoc-fr/reference/array/functions/each.xml:1.29 phpdoc-fr/reference/array/functions/each.xml:1.30 --- phpdoc-fr/reference/array/functions/each.xml:1.29 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/each.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.22 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.each" xmlns="http://docbook.org/ns/docbook"> @@ -150,6 +150,13 @@ variable dans notre boucle. </para> </caution> + <warning> + <para> + <function>each</function> accepte également des objets mais peut retourner + un résultat non-attendu. Aussi, il n'est pas recommandé d'utiliser cette + fonction sur des objets. + </para> + </warning> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; @@ -162,6 +169,7 @@ <member><function>next</function></member> <member><function>prev</function></member> <member><link linkend="control-structures.foreach">foreach</link></member> + <member><link linkend="language.oop5.iterations">Itération d'objet</link></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/end.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc-fr/reference/array/functions/end.xml diff -u phpdoc-fr/reference/array/functions/end.xml:1.18 phpdoc-fr/reference/array/functions/end.xml:1.19 --- phpdoc-fr/reference/array/functions/end.xml:1.18 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/end.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.19 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook"> @@ -38,7 +38,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne la valeur du dernier élément. + Retourne la valeur du dernier élément ou &false; si le tableau est vide. </para> </refsect1> <refsect1 role="examples"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/extract.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc-fr/reference/array/functions/extract.xml diff -u phpdoc-fr/reference/array/functions/extract.xml:1.26 phpdoc-fr/reference/array/functions/extract.xml:1.27 --- phpdoc-fr/reference/array/functions/extract.xml:1.26 Wed Apr 2 12:39:29 2008 +++ phpdoc-fr/reference/array/functions/extract.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.26 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.27 $ --> +<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.extract" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/sort.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/reference/array/functions/sort.xml diff -u phpdoc-fr/reference/array/functions/sort.xml:1.36 phpdoc-fr/reference/array/functions/sort.xml:1.37 --- phpdoc-fr/reference/array/functions/sort.xml:1.36 Sun Jun 8 19:52:16 2008 +++ phpdoc-fr/reference/array/functions/sort.xml Sat Nov 29 19:07:29 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.26 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.27 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>sort</refname> <refpurpose>Trie un tableau</refpurpose> @@ -134,6 +134,13 @@ <refsect1 role="notes"> &reftitle.notes; ¬e.no-key-association; + <note> + <simpara> + Comme la plupart des fonctions de tri de PHP, <function>sort</function> + utilise une implémentation de <link + xlink:href="&url.wiki.quicksort;">Quicksort</link>. + </simpara> + </note> <warning> <simpara> Attention lorsque vous triez des tableaux avec des types différents de http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/uksort.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc-fr/reference/array/functions/uksort.xml diff -u phpdoc-fr/reference/array/functions/uksort.xml:1.28 phpdoc-fr/reference/array/functions/uksort.xml:1.29 --- phpdoc-fr/reference/array/functions/uksort.xml:1.28 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/uksort.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> -<!-- EN-Revision: 1.22 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.29 $ --> +<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.uksort" xmlns="http://docbook.org/ns/docbook"> @@ -69,8 +69,8 @@ <?php function cmp($a, $b) { - $a = ereg_replace('^(a|an|the) ', '', $a); - $b = ereg_replace('^(a|an|the) ', '', $b); + $a = preg_replace('@^(a|an|the) @', '', $a); + $b = preg_replace('@^(a|an|the) @', '', $b); return strcasecmp($a, $b); } http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/bbcode/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/bbcode/constants.xml diff -u phpdoc-fr/reference/bbcode/constants.xml:1.2 phpdoc-fr/reference/bbcode/constants.xml:1.3 --- phpdoc-fr/reference/bbcode/constants.xml:1.2 Tue May 20 22:07:01 2008 +++ phpdoc-fr/reference/bbcode/constants.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="bbcode.constants" xmlns="http://docbook.org/ns/docbook"> @@ -184,6 +184,23 @@ </varlistentry> <varlistentry> <term> + <constant>BBCODE_ARG_QUOTE_ESCAPING</constant> + (<type>integer</type>) - depuis 1.0.2 + </term> + <listitem> + <simpara> + C'est une option de l'analyseur, permettant d'échapper les + guillements présents dans l'argument. Ceci permet de trouver + le délimiteur dans la chaîne. Le caractère d'échappement + est \. Il peut échapper n'importe quel caractère, y compris lui-même. + S'il est trouvé devant un caractère qui ne peut être échappé, + il sera supprimé. Le comportement par défaut est de ne pas + utiliser l'échappement. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>BBCODE_AUTO_CORRECT</constant> (<type>integer</type>) - depuis 0.10.2 </term> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/get-object-vars.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/classobj/functions/get-object-vars.xml diff -u phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.16 phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.17 --- phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.16 Sun Apr 20 09:03:26 2008 +++ phpdoc-fr/reference/classobj/functions/get-object-vars.xml Sat Nov 29 19:07:29 2008 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.get-object-vars" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>get_object_vars</refname> - <refpurpose>Retourne un tableau associatif des propriétés publiques d'un objet</refpurpose> + <refpurpose>Retourne les propriétés d'un objet</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; @@ -15,7 +15,8 @@ <methodparam><type>object</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> - Récupère les propriétés publiques de l'objet <parameter>object</parameter> fourni. + Récupère les propriétés non-statiques accessibles de l'objet + <parameter>object</parameter> du contexte. </para> </refsect1> <refsect1 role="parameters"> @@ -36,8 +37,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne un tableau associatif contenant les propriétés publiques - de l'objet <parameter>obj</parameter>. Si une propriété + Retourne un tableau associatif contenant les propriétés non-statiques + de l'objet <parameter>object</parameter> du contexte. Si une propriété n'a pas de valeur d'assignée, elle sera retournée avec une valeur &null;. </para> @@ -83,11 +84,17 @@ public $c; private $d; static $e; + + public function test() { + var_dump(get_object_vars($this)); + } } $test = new foo; var_dump(get_object_vars($test)); +$test->test(); + ?> ]]> </programlisting> @@ -100,6 +107,16 @@ ["c"]=> NULL } +array(4) { + ["a"]=> + NULL + ["b"]=> + int(1) + ["c"]=> + NULL + ["d"]=> + NULL +} ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/method-exists.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/classobj/functions/method-exists.xml diff -u phpdoc-fr/reference/classobj/functions/method-exists.xml:1.16 phpdoc-fr/reference/classobj/functions/method-exists.xml:1.17 --- phpdoc-fr/reference/classobj/functions/method-exists.xml:1.16 Tue Feb 26 08:32:50 2008 +++ phpdoc-fr/reference/classobj/functions/method-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook"> @@ -12,7 +12,7 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>method_exists</methodname> - <methodparam><type>object</type><parameter>object</parameter></methodparam> + <methodparam><type>mixed</type><parameter>object</parameter></methodparam> <methodparam><type>string</type><parameter>method_name</parameter></methodparam> </methodsynopsis> <para> @@ -28,7 +28,7 @@ <term><parameter>object</parameter></term> <listitem> <para> - Une instance d'un objet + Une instance d'un objet ou le nom d'une classe </para> </listitem> </varlistentry> @@ -76,7 +76,6 @@ <programlisting role="php"> <![CDATA[ <?php -$directory = new Directory('.'); var_dump(method_exists('Directory','read')); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/property-exists.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/classobj/functions/property-exists.xml diff -u phpdoc-fr/reference/classobj/functions/property-exists.xml:1.8 phpdoc-fr/reference/classobj/functions/property-exists.xml:1.9 --- phpdoc-fr/reference/classobj/functions/property-exists.xml:1.8 Sat Oct 6 02:03:27 2007 +++ phpdoc-fr/reference/classobj/functions/property-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.property-exists" xmlns="http://docbook.org/ns/docbook"> @@ -19,8 +19,7 @@ </methodsynopsis> <para> Cette fonction vérifie si la propriété <parameter>property</parameter> - existe dans la classe spécifiée (et si elle est accessible de la portée - courante). + existe dans la classe spécifiée. </para> <note> <para> @@ -60,6 +59,32 @@ si une erreur survient. </para> </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction vérifie l'existence d'une propriété indépendament + de l'accessibilité. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -72,15 +97,18 @@ class myClass { public $mine; private $xpto; + static protected $test; static function test() { - var_dump(property_exists('myClass', 'xpto')); // true, elle peut être accessible par ici + var_dump(property_exists('myClass', 'xpto')); //true } } var_dump(property_exists('myClass', 'mine')); //true var_dump(property_exists(new myClass, 'mine')); //true -var_dump(property_exists('myClass', 'xpto')); //false, non publique +var_dump(property_exists('myClass', 'xpto')); //true, depuis PHP 5.3.0 +var_dump(property_exists('myClass', 'bar')); //false +var_dump(property_exists('myClass', 'test')); //true, depuis PHP 5.3.0 myClass::test(); ?>
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-setenv.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-setenv.xml diff -u phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.16 phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.17 --- phpdoc-fr/reference/apache/functions/apache-setenv.xml:1.16 Sun Jun 8 19:52:15 2008 +++ phpdoc-fr/reference/apache/functions/apache-setenv.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apache-setenv" xmlns="http://docbook.org/ns/docbook"> @@ -24,7 +24,7 @@ <note> <para> Lors de la définition d'une variable d'environnement Apache, la variable - <link linkend="reserved.variables.server">$_SERVER</link> + <varname>$_SERVER</varname> correspondante n'est pas modifiée. </para> </note> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/getallheaders.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/reference/apache/functions/getallheaders.xml diff -u phpdoc-fr/reference/apache/functions/getallheaders.xml:1.19 phpdoc-fr/reference/apache/functions/getallheaders.xml:1.20 --- phpdoc-fr/reference/apache/functions/getallheaders.xml:1.19 Mon Feb 25 08:42:01 2008 +++ phpdoc-fr/reference/apache/functions/getallheaders.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.getallheaders" xmlns="http://docbook.org/ns/docbook"> @@ -65,7 +65,7 @@ &reftitle.examples; <para> <example> - <title>Exemple avec <function>getallheadres</function></title> + <title>Exemple avec <function>getallheaders</function></title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apc/functions/apc-fetch.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/apc/functions/apc-fetch.xml diff -u phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.6 phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.7 --- phpdoc-fr/reference/apc/functions/apc-fetch.xml:1.6 Mon Feb 25 14:02:04 2008 +++ phpdoc-fr/reference/apc/functions/apc-fetch.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.apc-fetch" xmlns="http://docbook.org/ns/docbook"> @@ -15,6 +15,7 @@ <methodsynopsis> <type>mixed</type><methodname>apc_fetch</methodname> <methodparam><type>string</type><parameter>key</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter role="reference">success</parameter></methodparam> </methodsynopsis> <para> Récupère une variable stockée dans le cache. @@ -33,6 +34,14 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>success</parameter></term> + <listitem> + <para> + Vaut &true; en cas de succès, et &false; si une erreur survient. + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apc/ini.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/apc/ini.xml diff -u phpdoc-fr/reference/apc/ini.xml:1.20 phpdoc-fr/reference/apc/ini.xml:1.21 --- phpdoc-fr/reference/apc/ini.xml:1.20 Wed Jun 11 10:03:02 2008 +++ phpdoc-fr/reference/apc/ini.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <section xml:id="apc.configuration" xmlns="http://docbook.org/ns/docbook"> @@ -208,6 +208,12 @@ <entry>PHP_INI_SYSTEM</entry> <entry>Disponible depuis APC 3.0.16.</entry> </row> + <row> + <entry>apc.stat_ctime</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + <entry>Disponible depuis APC 3.0.13.</entry> + </row> </tbody> </tgroup> </table> @@ -719,6 +725,21 @@ </listitem> </varlistentry> + <varlistentry xml:id="ini.apc.stat_ctime"> + <term> + <parameter>apc.stat_ctime</parameter> + <type>integer</type> + </term> + <listitem> + <para> + Une vérification avec ctime prévient les problèmes causés par des + programmes comme svn ou rsync en s'assurant que les inodes n'ont pas + été modifiées depuis le dernier appel à stat. APC, normalement, + n'utilise que mtime pour cela. + </para> + </listitem> + </varlistentry> + </variablelist> </para> </section> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-count-values.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/reference/array/functions/array-count-values.xml diff -u phpdoc-fr/reference/array/functions/array-count-values.xml:1.20 phpdoc-fr/reference/array/functions/array-count-values.xml:1.21 --- phpdoc-fr/reference/array/functions/array-count-values.xml:1.20 Sat Jul 21 06:10:21 2007 +++ phpdoc-fr/reference/array/functions/array-count-values.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.array-count-values" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-fill.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc-fr/reference/array/functions/array-fill.xml diff -u phpdoc-fr/reference/array/functions/array-fill.xml:1.25 phpdoc-fr/reference/array/functions/array-fill.xml:1.26 --- phpdoc-fr/reference/array/functions/array-fill.xml:1.25 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/array-fill.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.array-fill" xmlns="http://docbook.org/ns/docbook"> @@ -125,6 +125,7 @@ &reftitle.seealso; <para> <simplelist> + <member><function>array_fill_keys</function></member> <member><function>str_repeat</function></member> <member><function>range</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-key-exists.xml?r1=1.25&r2=1.26&diff_format=u Index: phpdoc-fr/reference/array/functions/array-key-exists.xml diff -u phpdoc-fr/reference/array/functions/array-key-exists.xml:1.25 phpdoc-fr/reference/array/functions/array-key-exists.xml:1.26 --- phpdoc-fr/reference/array/functions/array-key-exists.xml:1.25 Sun Jun 8 19:52:16 2008 +++ phpdoc-fr/reference/array/functions/array-key-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.25 $ --> -<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.26 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-key-exists"> @@ -21,8 +21,7 @@ clé du nom de <parameter>key</parameter> dans le tableau <parameter>search</parameter>. <parameter>key</parameter> peut être n'importe quelle valeur valide d'index - de tableau. <function>array_key_exists</function> fonctionne - également sur les objets. + de tableau. </para> </refsect1> @@ -57,6 +56,31 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction ne fonctionne plus avec les objets. La fonction + <function>property_exists</function> doit être utilisée dans ce cas. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -110,6 +134,7 @@ <member><function>isset</function></member> <member><function>array_keys</function></member> <member><function>in_array</function></member> + <member><function>property_exists</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-map.xml?r1=1.27&r2=1.28&diff_format=u Index: phpdoc-fr/reference/array/functions/array-map.xml diff -u phpdoc-fr/reference/array/functions/array-map.xml:1.27 phpdoc-fr/reference/array/functions/array-map.xml:1.28 --- phpdoc-fr/reference/array/functions/array-map.xml:1.27 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/array-map.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.27 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.28 $ --> +<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-map"> @@ -106,6 +106,34 @@ ]]> </screen> </example> + <example> + <title><function>array_map</function> - Utilisation d'une fonction quelconque (depuis PHP 5.3.0)</title> + <programlisting role="php"> +<![CDATA[ +<?php + +/* Depuis PHP 5.3.0 */ + +$func = function($value) { return $value * 2; }; + +print_r(array_map($func, range(1, 5))); + +?> +]]> + </programlisting> + <screen> +<![CDATA[ +Array +( + [0] => 2 + [1] => 4 + [2] => 6 + [3] => 8 + [4] => 10 +) +]]> + </screen> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/each.xml?r1=1.29&r2=1.30&diff_format=u Index: phpdoc-fr/reference/array/functions/each.xml diff -u phpdoc-fr/reference/array/functions/each.xml:1.29 phpdoc-fr/reference/array/functions/each.xml:1.30 --- phpdoc-fr/reference/array/functions/each.xml:1.29 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/each.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.29 $ --> -<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.30 $ --> +<!-- EN-Revision: 1.22 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.each" xmlns="http://docbook.org/ns/docbook"> @@ -150,6 +150,13 @@ variable dans notre boucle. </para> </caution> + <warning> + <para> + <function>each</function> accepte également des objets mais peut retourner + un résultat non-attendu. Aussi, il n'est pas recommandé d'utiliser cette + fonction sur des objets. + </para> + </warning> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; @@ -162,6 +169,7 @@ <member><function>next</function></member> <member><function>prev</function></member> <member><link linkend="control-structures.foreach">foreach</link></member> + <member><link linkend="language.oop5.iterations">Itération d'objet</link></member> </simplelist> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/end.xml?r1=1.18&r2=1.19&diff_format=u Index: phpdoc-fr/reference/array/functions/end.xml diff -u phpdoc-fr/reference/array/functions/end.xml:1.18 phpdoc-fr/reference/array/functions/end.xml:1.19 --- phpdoc-fr/reference/array/functions/end.xml:1.18 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/end.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.19 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.end" xmlns="http://docbook.org/ns/docbook"> @@ -38,7 +38,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne la valeur du dernier élément. + Retourne la valeur du dernier élément ou &false; si le tableau est vide. </para> </refsect1> <refsect1 role="examples"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/extract.xml?r1=1.26&r2=1.27&diff_format=u Index: phpdoc-fr/reference/array/functions/extract.xml diff -u phpdoc-fr/reference/array/functions/extract.xml:1.26 phpdoc-fr/reference/array/functions/extract.xml:1.27 --- phpdoc-fr/reference/array/functions/extract.xml:1.26 Wed Apr 2 12:39:29 2008 +++ phpdoc-fr/reference/array/functions/extract.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.26 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.27 $ --> +<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.extract" xmlns="http://docbook.org/ns/docbook"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/sort.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/reference/array/functions/sort.xml diff -u phpdoc-fr/reference/array/functions/sort.xml:1.36 phpdoc-fr/reference/array/functions/sort.xml:1.37 --- phpdoc-fr/reference/array/functions/sort.xml:1.36 Sun Jun 8 19:52:16 2008 +++ phpdoc-fr/reference/array/functions/sort.xml Sat Nov 29 19:07:29 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.26 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.27 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> -<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook"> +<refentry xml:id="function.sort" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>sort</refname> <refpurpose>Trie un tableau</refpurpose> @@ -134,6 +134,13 @@ <refsect1 role="notes"> &reftitle.notes; ¬e.no-key-association; + <note> + <simpara> + Comme la plupart des fonctions de tri de PHP, <function>sort</function> + utilise une implémentation de <link + xlink:href="&url.wiki.quicksort;">Quicksort</link>. + </simpara> + </note> <warning> <simpara> Attention lorsque vous triez des tableaux avec des types différents de http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/uksort.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc-fr/reference/array/functions/uksort.xml diff -u phpdoc-fr/reference/array/functions/uksort.xml:1.28 phpdoc-fr/reference/array/functions/uksort.xml:1.29 --- phpdoc-fr/reference/array/functions/uksort.xml:1.28 Mon May 12 22:24:30 2008 +++ phpdoc-fr/reference/array/functions/uksort.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> -<!-- EN-Revision: 1.22 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.29 $ --> +<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.uksort" xmlns="http://docbook.org/ns/docbook"> @@ -69,8 +69,8 @@ <?php function cmp($a, $b) { - $a = ereg_replace('^(a|an|the) ', '', $a); - $b = ereg_replace('^(a|an|the) ', '', $b); + $a = preg_replace('@^(a|an|the) @', '', $a); + $b = preg_replace('@^(a|an|the) @', '', $b); return strcasecmp($a, $b); } http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/bbcode/constants.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/bbcode/constants.xml diff -u phpdoc-fr/reference/bbcode/constants.xml:1.2 phpdoc-fr/reference/bbcode/constants.xml:1.3 --- phpdoc-fr/reference/bbcode/constants.xml:1.2 Tue May 20 22:07:01 2008 +++ phpdoc-fr/reference/bbcode/constants.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="bbcode.constants" xmlns="http://docbook.org/ns/docbook"> @@ -184,6 +184,23 @@ </varlistentry> <varlistentry> <term> + <constant>BBCODE_ARG_QUOTE_ESCAPING</constant> + (<type>integer</type>) - depuis 1.0.2 + </term> + <listitem> + <simpara> + C'est une option de l'analyseur, permettant d'échapper les + guillements présents dans l'argument. Ceci permet de trouver + le délimiteur dans la chaîne. Le caractère d'échappement + est \. Il peut échapper n'importe quel caractère, y compris lui-même. + S'il est trouvé devant un caractère qui ne peut être échappé, + il sera supprimé. Le comportement par défaut est de ne pas + utiliser l'échappement. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> <constant>BBCODE_AUTO_CORRECT</constant> (<type>integer</type>) - depuis 0.10.2 </term> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/get-object-vars.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/classobj/functions/get-object-vars.xml diff -u phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.16 phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.17 --- phpdoc-fr/reference/classobj/functions/get-object-vars.xml:1.16 Sun Apr 20 09:03:26 2008 +++ phpdoc-fr/reference/classobj/functions/get-object-vars.xml Sat Nov 29 19:07:29 2008 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.get-object-vars" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>get_object_vars</refname> - <refpurpose>Retourne un tableau associatif des propriétés publiques d'un objet</refpurpose> + <refpurpose>Retourne les propriétés d'un objet</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; @@ -15,7 +15,8 @@ <methodparam><type>object</type><parameter>object</parameter></methodparam> </methodsynopsis> <para> - Récupère les propriétés publiques de l'objet <parameter>object</parameter> fourni. + Récupère les propriétés non-statiques accessibles de l'objet + <parameter>object</parameter> du contexte. </para> </refsect1> <refsect1 role="parameters"> @@ -36,8 +37,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Retourne un tableau associatif contenant les propriétés publiques - de l'objet <parameter>obj</parameter>. Si une propriété + Retourne un tableau associatif contenant les propriétés non-statiques + de l'objet <parameter>object</parameter> du contexte. Si une propriété n'a pas de valeur d'assignée, elle sera retournée avec une valeur &null;. </para> @@ -83,11 +84,17 @@ public $c; private $d; static $e; + + public function test() { + var_dump(get_object_vars($this)); + } } $test = new foo; var_dump(get_object_vars($test)); +$test->test(); + ?> ]]> </programlisting> @@ -100,6 +107,16 @@ ["c"]=> NULL } +array(4) { + ["a"]=> + NULL + ["b"]=> + int(1) + ["c"]=> + NULL + ["d"]=> + NULL +} ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/method-exists.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/classobj/functions/method-exists.xml diff -u phpdoc-fr/reference/classobj/functions/method-exists.xml:1.16 phpdoc-fr/reference/classobj/functions/method-exists.xml:1.17 --- phpdoc-fr/reference/classobj/functions/method-exists.xml:1.16 Tue Feb 26 08:32:50 2008 +++ phpdoc-fr/reference/classobj/functions/method-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.method-exists" xmlns="http://docbook.org/ns/docbook"> @@ -12,7 +12,7 @@ &reftitle.description; <methodsynopsis> <type>bool</type><methodname>method_exists</methodname> - <methodparam><type>object</type><parameter>object</parameter></methodparam> + <methodparam><type>mixed</type><parameter>object</parameter></methodparam> <methodparam><type>string</type><parameter>method_name</parameter></methodparam> </methodsynopsis> <para> @@ -28,7 +28,7 @@ <term><parameter>object</parameter></term> <listitem> <para> - Une instance d'un objet + Une instance d'un objet ou le nom d'une classe </para> </listitem> </varlistentry> @@ -76,7 +76,6 @@ <programlisting role="php"> <![CDATA[ <?php -$directory = new Directory('.'); var_dump(method_exists('Directory','read')); ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/property-exists.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/classobj/functions/property-exists.xml diff -u phpdoc-fr/reference/classobj/functions/property-exists.xml:1.8 phpdoc-fr/reference/classobj/functions/property-exists.xml:1.9 --- phpdoc-fr/reference/classobj/functions/property-exists.xml:1.8 Sat Oct 6 02:03:27 2007 +++ phpdoc-fr/reference/classobj/functions/property-exists.xml Sat Nov 29 19:07:29 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.property-exists" xmlns="http://docbook.org/ns/docbook"> @@ -19,8 +19,7 @@ </methodsynopsis> <para> Cette fonction vérifie si la propriété <parameter>property</parameter> - existe dans la classe spécifiée (et si elle est accessible de la portée - courante). + existe dans la classe spécifiée. </para> <note> <para> @@ -60,6 +59,32 @@ si une erreur survient. </para> </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction vérifie l'existence d'une propriété indépendament + de l'accessibilité. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -72,15 +97,18 @@ class myClass { public $mine; private $xpto; + static protected $test; static function test() { - var_dump(property_exists('myClass', 'xpto')); // true, elle peut être accessible par ici + var_dump(property_exists('myClass', 'xpto')); //true } } var_dump(property_exists('myClass', 'mine')); //true var_dump(property_exists(new myClass, 'mine')); //true -var_dump(property_exists('myClass', 'xpto')); //false, non publique +var_dump(property_exists('myClass', 'xpto')); //true, depuis PHP 5.3.0 +var_dump(property_exists('myClass', 'bar')); //false +var_dump(property_exists('myClass', 'test')); //true, depuis PHP 5.3.0 myClass::test(); ?>