cvs: phpdoc-fr / language-snippets.ent /appendices timezones.xml /faq installation.xml /language/oop5 constants.xml overloading.xml
paamayim-nekudotayim.xml static.xml /reference/classobj/functions get-class.xml
| From: | Yannick Torres | Date: | Fri, 07 Mar 2008 16:13:48 +0000 |
| Subject: | cvs: phpdoc-fr / language-snippets.ent /appendices timezones.xml /faq installation.xml /language/oop5 constants.xml overloading.xml paamayim-nekudotayim.xml static.xml /reference/classobj/functions get-class.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-5573@lists.php.net to get a copy of this message | ||
yannick Fri Mar 7 16:13:48 2008 UTC
Modified files:
/phpdoc-fr/appendices timezones.xml
/phpdoc-fr/faq installation.xml
/phpdoc-fr/language/oop5 constants.xml overloading.xml
paamayim-nekudotayim.xml static.xml
/phpdoc-fr language-snippets.ent
/phpdoc-fr/reference/classobj/functions get-class.xml
Log:
sync with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/timezones.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/appendices/timezones.xml diff -u phpdoc-fr/appendices/timezones.xml:1.5 phpdoc-fr/appendices/timezones.xml:1.6 --- phpdoc-fr/appendices/timezones.xml:1.5 Fri Jul 20 20:50:48 2007 +++ phpdoc-fr/appendices/timezones.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <appendix xml:id="timezones" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -31,74 +31,77 @@ <entry>Africa/Accra</entry> <entry>Africa/Addis_Ababa</entry> <entry>Africa/Algiers</entry> - <entry>Africa/Asmera</entry> + <entry>Africa/Asmara</entry> </row> <row> + <entry>Africa/Asmera</entry> <entry>Africa/Bamako</entry> <entry>Africa/Bangui</entry> <entry>Africa/Banjul</entry> <entry>Africa/Bissau</entry> - <entry>Africa/Blantyre</entry> </row> <row> + <entry>Africa/Blantyre</entry> <entry>Africa/Brazzaville</entry> <entry>Africa/Bujumbura</entry> <entry>Africa/Cairo</entry> <entry>Africa/Casablanca</entry> - <entry>Africa/Ceuta</entry> </row> <row> + <entry>Africa/Ceuta</entry> <entry>Africa/Conakry</entry> <entry>Africa/Dakar</entry> <entry>Africa/Dar_es_Salaam</entry> <entry>Africa/Djibouti</entry> - <entry>Africa/Douala</entry> </row> <row> + <entry>Africa/Douala</entry> <entry>Africa/El_Aaiun</entry> <entry>Africa/Freetown</entry> <entry>Africa/Gaborone</entry> <entry>Africa/Harare</entry> - <entry>Africa/Johannesburg</entry> </row> <row> + <entry>Africa/Johannesburg</entry> <entry>Africa/Kampala</entry> <entry>Africa/Khartoum</entry> <entry>Africa/Kigali</entry> <entry>Africa/Kinshasa</entry> - <entry>Africa/Lagos</entry> </row> <row> + <entry>Africa/Lagos</entry> <entry>Africa/Libreville</entry> <entry>Africa/Lome</entry> <entry>Africa/Luanda</entry> <entry>Africa/Lubumbashi</entry> - <entry>Africa/Lusaka</entry> </row> <row> + <entry>Africa/Lusaka</entry> <entry>Africa/Malabo</entry> <entry>Africa/Maputo</entry> <entry>Africa/Maseru</entry> <entry>Africa/Mbabane</entry> - <entry>Africa/Mogadishu</entry> </row> <row> + <entry>Africa/Mogadishu</entry> <entry>Africa/Monrovia</entry> <entry>Africa/Nairobi</entry> <entry>Africa/Ndjamena</entry> <entry>Africa/Niamey</entry> - <entry>Africa/Nouakchott</entry> </row> <row> + <entry>Africa/Nouakchott</entry> <entry>Africa/Ouagadougou</entry> <entry>Africa/Porto-Novo</entry> <entry>Africa/Sao_Tome</entry> <entry>Africa/Timbuktu</entry> - <entry>Africa/Tripoli</entry> </row> <row> + <entry>Africa/Tripoli</entry> <entry>Africa/Tunis</entry> <entry>Africa/Windhoek</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -211,85 +214,92 @@ </row> <row> <entry>America/Indiana/Petersburg</entry> + <entry>America/Indiana/Tell_City</entry> <entry>America/Indiana/Vevay</entry> <entry>America/Indiana/Vincennes</entry> - <entry>America/Indianapolis</entry> - <entry>America/Inuvik</entry> + <entry>America/Indiana/Winamac</entry> </row> <row> + <entry>America/Indianapolis</entry> + <entry>America/Inuvik</entry> <entry>America/Iqaluit</entry> <entry>America/Jamaica</entry> <entry>America/Jujuy</entry> - <entry>America/Juneau</entry> - <entry>America/Kentucky/Louisville</entry> </row> <row> + <entry>America/Juneau</entry> + <entry>America/Kentucky/Louisville</entry> <entry>America/Kentucky/Monticello</entry> <entry>America/Knox_IN</entry> <entry>America/La_Paz</entry> - <entry>America/Lima</entry> - <entry>America/Los_Angeles</entry> </row> <row> + <entry>America/Lima</entry> + <entry>America/Los_Angeles</entry> <entry>America/Louisville</entry> <entry>America/Maceio</entry> <entry>America/Managua</entry> - <entry>America/Manaus</entry> - <entry>America/Martinique</entry> </row> <row> + <entry>America/Manaus</entry> + <entry>America/Marigot</entry> + <entry>America/Martinique</entry> <entry>America/Mazatlan</entry> <entry>America/Mendoza</entry> + </row> + <row> <entry>America/Menominee</entry> <entry>America/Merida</entry> <entry>America/Mexico_City</entry> - </row> - <row> <entry>America/Miquelon</entry> <entry>America/Moncton</entry> + </row> + <row> <entry>America/Monterrey</entry> <entry>America/Montevideo</entry> <entry>America/Montreal</entry> - </row> - <row> <entry>America/Montserrat</entry> <entry>America/Nassau</entry> + </row> + <row> <entry>America/New_York</entry> <entry>America/Nipigon</entry> <entry>America/Nome</entry> - </row> - <row> <entry>America/Noronha</entry> <entry>America/North_Dakota/Center</entry> + </row> + <row> <entry>America/North_Dakota/New_Salem</entry> <entry>America/Panama</entry> <entry>America/Pangnirtung</entry> - </row> - <row> <entry>America/Paramaribo</entry> <entry>America/Phoenix</entry> + </row> + <row> <entry>America/Port-au-Prince</entry> <entry>America/Port_of_Spain</entry> <entry>America/Porto_Acre</entry> - </row> - <row> <entry>America/Porto_Velho</entry> <entry>America/Puerto_Rico</entry> + </row> + <row> <entry>America/Rainy_River</entry> <entry>America/Rankin_Inlet</entry> <entry>America/Recife</entry> + <entry>America/Regina</entry> + <entry>America/Resolute</entry> </row> <row> - <entry>America/Regina</entry> <entry>America/Rio_Branco</entry> <entry>America/Rosario</entry> <entry>America/Santiago</entry> <entry>America/Santo_Domingo</entry> + <entry>America/Sao_Paulo</entry> </row> <row> - <entry>America/Sao_Paulo</entry> <entry>America/Scoresbysund</entry> <entry>America/Shiprock</entry> + <entry>America/St_Barthelemy</entry> <entry>America/St_Johns</entry> <entry>America/St_Kitts</entry> </row> @@ -316,6 +326,10 @@ </row> <row> <entry>America/Yellowknife</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -323,7 +337,7 @@ </sect1> <sect1 xml:id="timezones.antarctica"> - <title>List of timezones in the group Antarctica</title> + <title>Liste des fuseaux horaires dans le groupe Antarctica (Antarctique)</title> <table> <title>Antarctica</title> <tgroup cols="5"> @@ -348,10 +362,10 @@ </sect1> <sect1 xml:id="timezones.arctic"> - <title>List of timezones in the group Arctic</title> + <title>Liste des fuseaux horaires dans le groupe Arctic (Arctique)</title> <table> <title>Arctic</title> - <tgroup cols="5"> + <tgroup cols="1"> <tbody> <row> <entry>Arctic/Longyearbyen</entry> @@ -484,6 +498,7 @@ <entry>Asia/Yakutsk</entry> <entry>Asia/Yekaterinburg</entry> <entry>Asia/Yerevan</entry> + <entry></entry> </row> </tbody> </tgroup> @@ -504,14 +519,18 @@ <entry>Atlantic/Faeroe</entry> </row> <row> + <entry>Atlantic/Faroe</entry> <entry>Atlantic/Jan_Mayen</entry> <entry>Atlantic/Madeira</entry> <entry>Atlantic/Reykjavik</entry> <entry>Atlantic/South_Georgia</entry> - <entry>Atlantic/St_Helena</entry> </row> <row> + <entry>Atlantic/St_Helena</entry> <entry>Atlantic/Stanley</entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -519,7 +538,7 @@ </sect1> <sect1 xml:id="timezones.australia"> - <title>List of timezones in the group Australia</title> + <title>Liste des fuseaux horaires dans le groupe Australia (Australie)</title> <table> <title>Australia</title> <tgroup cols="5"> @@ -534,27 +553,30 @@ <row> <entry>Australia/Currie</entry> <entry>Australia/Darwin</entry> + <entry>Australia/Eucla</entry> <entry>Australia/Hobart</entry> <entry>Australia/LHI</entry> - <entry>Australia/Lindeman</entry> </row> <row> + <entry>Australia/Lindeman</entry> <entry>Australia/Lord_Howe</entry> <entry>Australia/Melbourne</entry> <entry>Australia/North</entry> <entry>Australia/NSW</entry> - <entry>Australia/Perth</entry> </row> <row> + <entry>Australia/Perth</entry> <entry>Australia/Queensland</entry> <entry>Australia/South</entry> <entry>Australia/Sydney</entry> <entry>Australia/Tasmania</entry> - <entry>Australia/Victoria</entry> </row> <row> + <entry>Australia/Victoria</entry> <entry>Australia/West</entry> <entry>Australia/Yancowinna</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -614,39 +636,42 @@ <entry>Europe/Nicosia</entry> <entry>Europe/Oslo</entry> <entry>Europe/Paris</entry> - <entry>Europe/Prague</entry> + <entry>Europe/Podgorica</entry> </row> <row> + <entry>Europe/Prague</entry> <entry>Europe/Riga</entry> <entry>Europe/Rome</entry> <entry>Europe/Samara</entry> <entry>Europe/San_Marino</entry> - <entry>Europe/Sarajevo</entry> </row> <row> + <entry>Europe/Sarajevo</entry> <entry>Europe/Simferopol</entry> <entry>Europe/Skopje</entry> <entry>Europe/Sofia</entry> <entry>Europe/Stockholm</entry> - <entry>Europe/Tallinn</entry> </row> <row> + <entry>Europe/Tallinn</entry> <entry>Europe/Tirane</entry> <entry>Europe/Tiraspol</entry> <entry>Europe/Uzhgorod</entry> <entry>Europe/Vaduz</entry> - <entry>Europe/Vatican</entry> </row> <row> + <entry>Europe/Vatican</entry> <entry>Europe/Vienna</entry> <entry>Europe/Vilnius</entry> <entry>Europe/Volgograd</entry> <entry>Europe/Warsaw</entry> - <entry>Europe/Zagreb</entry> </row> <row> + <entry>Europe/Zagreb</entry> <entry>Europe/Zaporozhye</entry> <entry>Europe/Zurich</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -675,6 +700,10 @@ </row> <row> <entry>Indian/Reunion</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -910,16 +939,20 @@ </row> <row> <entry>Zulu</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> </table> - <note> + <warning> <simpara> N'utilisez aucun des fuseaux horaires listés ici, ils n'existent que pour des raisons de compatibilité ascendante. </simpara> - </note> + </warning> </sect1> </appendix> http://cvs.php.net/viewvc.cgi/phpdoc-fr/faq/installation.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/faq/installation.xml diff -u phpdoc-fr/faq/installation.xml:1.36 phpdoc-fr/faq/installation.xml:1.37 --- phpdoc-fr/faq/installation.xml:1.36 Sun Feb 24 10:11:55 2008 +++ phpdoc-fr/faq/installation.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.50 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.51 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="faq.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -410,6 +410,9 @@ alors assurez-vous de redémarrer le serveur web après avoir effectué les modifications à votre &php.ini;. </para> + <para> + Voir aussi la fonction <function>php_ini_loaded_file</function>. + </para> </answer> </qandaentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/constants.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/language/oop5/constants.xml diff -u phpdoc-fr/language/oop5/constants.xml:1.13 phpdoc-fr/language/oop5/constants.xml:1.14 --- phpdoc-fr/language/oop5/constants.xml:1.13 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/constants.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.constants" xmlns="http://docbook.org/ns/docbook"> @@ -19,8 +19,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer une classe en utilisant une - variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés comme références dynamiques de classe. + variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <example> @@ -45,7 +45,7 @@ $class = new MyClass(); $class->showConstant(); -echo $class::constant."\n"; +echo $class::constant."\n"; // Depuis PHP 5.3.0 ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/overloading.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-fr/language/oop5/overloading.xml diff -u phpdoc-fr/language/oop5/overloading.xml:1.24 phpdoc-fr/language/oop5/overloading.xml:1.25 --- phpdoc-fr/language/oop5/overloading.xml:1.24 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/overloading.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.overloading" xmlns="http://docbook.org/ns/docbook"> @@ -11,8 +11,6 @@ et <function>__set</function>. Ces méthodes ne seront déclenchées que si votre objet, hérité ou non, ne contient pas le membre <modifier>public</modifier> ou la méthode auquel vous tentez d'accéder. - Toutes les méthodes surchargées ne doivent pas être définies en - tant que <link linkend="language.oop5.static">static</link>. Toutes les méthodes surchargées doivent être définies en tant que <link linkend="language.oop5.visibility">public</link>. </para> @@ -22,6 +20,10 @@ les méthodes __isset et __unset. La méthode __isset est également appelée avec la fonction <function>empty</function>. </para> + <para> + &php; 5.3.0 ajoute la possibilité de surcharger les méthodes + <link linkend="language.oop5.static">statiques</link> via __callStatic. + </para> <sect2 xml:id="language.oop5.overloading.members"> <title>Surcharge de membre</title> @@ -176,17 +178,22 @@ <methodparam><type>string</type><parameter>name</parameter></methodparam> <methodparam><type>array</type><parameter>arguments</parameter></methodparam> </methodsynopsis> + <methodsynopsis> + <type>mixed</type><methodname>__callStatic</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>array</type><parameter>arguments</parameter></methodparam> + </methodsynopsis> <para> - La méthode magique <function>__call</function> permet la capture - des appels à des méthodes inexistantes. De cette façon, - <function>__call</function> peut être utilisée pour implémenter - un gestionnaire de méthodes défini par l'utilisateur qui dépend du nom de + Les méthodes magiques <function>__call</function> et <function>__callStatic</function> + permet la capture des appels à des méthodes inexistantes. De cette façon, + ces méthodes peuvent être utilisées pour implémenter un gestionnaire de + méthodes défini par l'utilisateur qui dépend du nom de la méthode réellement appelée. Ceci est particulièrement pratique pour implémenter une classe proxy, par exemple. Les arguments qui sont passés à la fonction devront être définis dans un tableau via le paramètre - <varname>$arguments</varname>. La valeur retournée par la méthode - <function>__call</function> sera retournée à la méthode appelante. + <varname>$arguments</varname>. La valeur retournée par ces méthodes + sera retournée à la méthode appelante. </para> <example> @@ -196,18 +203,18 @@ <?php class Caller { - private $x = array(1, 2, 3); + private $x = array(10, 20); public function __call($m, $a) { - print "Méthode $m appelée :\n"; + print "Méthode instanciée $m appelée :\n"; var_dump($a); return $this->x; } } $foo = new Caller(); -$a = $foo->test(1, "2", 3.4, true); +$a = $foo->test('a','b'); var_dump($a); ?> ]]> @@ -216,24 +223,61 @@ <screen role="php"> <![CDATA[ -Méthode test appelée : -array(4) { +Méthode instanciée test appelée : +array(2) { [0]=> - int(1) + string(1) "a" [1]=> - string(1) "2" - [2]=> - float(3.4) - [3]=> - bool(true) + string(1) "b" } -array(3) { +array(2) { [0]=> - int(1) + int(10) + [1]=> + int(20) +} +]]> + </screen> + </example> + + <example> + <title>Exemple de méthodes instanciées et surchargées avec __call</title> + <programlisting role="php"> + <![CDATA[ +<?php +class Caller +{ + private static $x = array(10, 20); + + public static function __callStatic($m, $a) + { + print "Méthode statique '$m' appelée :\n"; + var_dump($a); + return self::$x; + } +} + +$a = Caller::test('a', 'b'); +var_dump($a); +?> +]]> + </programlisting> + &example.outputs; + <screen role="php"> +<![CDATA[ + +Méthode statique 'test' appelée : +array(2) { + [0]=> + string(1) "a" + [1]=> + string(1) "b" +} +array(2) { + [0]=> + int(10) [1]=> - int(2) - [2]=> - int(3) + int(20) } ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/paamayim-nekudotayim.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/language/oop5/paamayim-nekudotayim.xml diff -u phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.17 phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.18 --- phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.17 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/paamayim-nekudotayim.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.paamayim-nekudotayim" xmlns="http://docbook.org/ns/docbook"> @@ -22,8 +22,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer une classe en utilisant - une variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés comme références dynamiques de classe. + une variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/static.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/language/oop5/static.xml diff -u phpdoc-fr/language/oop5/static.xml:1.20 phpdoc-fr/language/oop5/static.xml:1.21 --- phpdoc-fr/language/oop5/static.xml:1.20 Sun Jan 27 14:08:18 2008 +++ phpdoc-fr/language/oop5/static.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.static" xmlns="http://docbook.org/ns/docbook"> @@ -38,8 +38,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer la classe en utilisant - une variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés dans les références des classs dynamiques. + une variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language-snippets.ent?r1=1.171&r2=1.172&diff_format=u Index: phpdoc-fr/language-snippets.ent diff -u phpdoc-fr/language-snippets.ent:1.171 phpdoc-fr/language-snippets.ent:1.172 --- phpdoc-fr/language-snippets.ent:1.171 Wed Jan 23 15:59:57 2008 +++ phpdoc-fr/language-snippets.ent Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.171 $ --> -<!-- EN-Revision: 1.214 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.172 $ --> +<!-- EN-Revision: 1.216 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- @@ -747,8 +747,12 @@ <para>Le paramètre <parameter>encoding</parameter> spécifie le jeu de caractères utilisé pour les documents en entrées et sorties. Les valeurs possibles de <parameter>encoding</parameter> sont : -ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, -utf16le, utf16be, big5 et shiftjis.</para>'> +<literal>ascii</literal>, <literal>latin0</literal>, <literal>latin1</literal>, +<literal>raw</literal>, <literal>utf8</literal>, <literal>iso2022</literal>, +<literal>mac</literal>, <literal>win1252</literal>, <literal>ibm858</literal>, +<literal>utf16</literal>, <literal>utf16le</literal>, +<literal>utf16be</literal>, <literal>big5</literal> et +<literal>shiftjis</literal>.</para>'> <!-- Snippets for the installation section --> <!ENTITY warn.apache2.compat '<warning><para>Nous ne recommandons pas @@ -805,10 +809,10 @@ <!ENTITY note.runkit.sandbox '<note><simpara>Support Sandbox (requis pour <function>runkit_lint</function>, <function>runkit_lint_file</function> -et la classe Runkit_Sandbox) n'est seulement disponible qu'avec &php; 5.1 -ou les versions de &php; 5.0 spécialement patché et nécessite que la protection -de thread soit activée. Voyez le fichier README inclus dans le paquetage -runkit pour plus d'informations. +et la classe <classname>Runkit_Sandbox</classname>) n'est seulement disponible +qu'avec &php; 5.1 ou les versions de &php; 5.0 spécialement patché et +nécessite que la protection de thread soit activée. Voyez le fichier README +inclus dans le paquetage runkit pour plus d'informations. </simpara></note>'> <!ENTITY note.runkit.internal-override '<note><simpara>Par défaut, seulement @@ -914,7 +918,8 @@ Les fonctions arithmétiques VARIANT sont interfacées sur les fonctions de la librairie COM équivalentes ; pour plus d'informations sur ces fonctions, veuillez consulter la bibliothèque MSDN. Les fonctions &php; sont nommées de façon légèrement différentes : - par exemple, variant_add(), en &php;, correspond à VarAdd() dans la documentation MSDN. + par exemple, <function>variant_add</function>, en &php;, correspond à VarAdd() dans la + documentation MSDN. </para> </note> '> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/get-class.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/classobj/functions/get-class.xml diff -u phpdoc-fr/reference/classobj/functions/get-class.xml:1.15 phpdoc-fr/reference/classobj/functions/get-class.xml:1.16 --- phpdoc-fr/reference/classobj/functions/get-class.xml:1.15 Sat Jul 21 06:37:34 2007 +++ phpdoc-fr/reference/classobj/functions/get-class.xml Fri Mar 7 16:13:48 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.11 Maintainer: dams Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.get-class" xmlns="http://docbook.org/ns/docbook"> @@ -81,10 +81,6 @@ <?php class foo { - function foo() - { - // un peu de code - } function name() { @@ -112,6 +108,36 @@ ]]> </screen> </example> + <example> + <title>Utilisation de <function>get_class</function> dans une superclasse</title> + <programlisting role="php"> +<![CDATA[ +<?php + +abstract class bar { + public function __construct() + { + var_dump(get_class($this)); + var_dump(get_class()); + } +} + +class foo extends bar { +} + +new foo; + +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +string(3) "foo" +string(3) "bar" +]]> + </screen> + </example> </para> </refsect1> <refsect1 role="seealso">
http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/timezones.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/appendices/timezones.xml diff -u phpdoc-fr/appendices/timezones.xml:1.5 phpdoc-fr/appendices/timezones.xml:1.6 --- phpdoc-fr/appendices/timezones.xml:1.5 Fri Jul 20 20:50:48 2007 +++ phpdoc-fr/appendices/timezones.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <appendix xml:id="timezones" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -31,74 +31,77 @@ <entry>Africa/Accra</entry> <entry>Africa/Addis_Ababa</entry> <entry>Africa/Algiers</entry> - <entry>Africa/Asmera</entry> + <entry>Africa/Asmara</entry> </row> <row> + <entry>Africa/Asmera</entry> <entry>Africa/Bamako</entry> <entry>Africa/Bangui</entry> <entry>Africa/Banjul</entry> <entry>Africa/Bissau</entry> - <entry>Africa/Blantyre</entry> </row> <row> + <entry>Africa/Blantyre</entry> <entry>Africa/Brazzaville</entry> <entry>Africa/Bujumbura</entry> <entry>Africa/Cairo</entry> <entry>Africa/Casablanca</entry> - <entry>Africa/Ceuta</entry> </row> <row> + <entry>Africa/Ceuta</entry> <entry>Africa/Conakry</entry> <entry>Africa/Dakar</entry> <entry>Africa/Dar_es_Salaam</entry> <entry>Africa/Djibouti</entry> - <entry>Africa/Douala</entry> </row> <row> + <entry>Africa/Douala</entry> <entry>Africa/El_Aaiun</entry> <entry>Africa/Freetown</entry> <entry>Africa/Gaborone</entry> <entry>Africa/Harare</entry> - <entry>Africa/Johannesburg</entry> </row> <row> + <entry>Africa/Johannesburg</entry> <entry>Africa/Kampala</entry> <entry>Africa/Khartoum</entry> <entry>Africa/Kigali</entry> <entry>Africa/Kinshasa</entry> - <entry>Africa/Lagos</entry> </row> <row> + <entry>Africa/Lagos</entry> <entry>Africa/Libreville</entry> <entry>Africa/Lome</entry> <entry>Africa/Luanda</entry> <entry>Africa/Lubumbashi</entry> - <entry>Africa/Lusaka</entry> </row> <row> + <entry>Africa/Lusaka</entry> <entry>Africa/Malabo</entry> <entry>Africa/Maputo</entry> <entry>Africa/Maseru</entry> <entry>Africa/Mbabane</entry> - <entry>Africa/Mogadishu</entry> </row> <row> + <entry>Africa/Mogadishu</entry> <entry>Africa/Monrovia</entry> <entry>Africa/Nairobi</entry> <entry>Africa/Ndjamena</entry> <entry>Africa/Niamey</entry> - <entry>Africa/Nouakchott</entry> </row> <row> + <entry>Africa/Nouakchott</entry> <entry>Africa/Ouagadougou</entry> <entry>Africa/Porto-Novo</entry> <entry>Africa/Sao_Tome</entry> <entry>Africa/Timbuktu</entry> - <entry>Africa/Tripoli</entry> </row> <row> + <entry>Africa/Tripoli</entry> <entry>Africa/Tunis</entry> <entry>Africa/Windhoek</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -211,85 +214,92 @@ </row> <row> <entry>America/Indiana/Petersburg</entry> + <entry>America/Indiana/Tell_City</entry> <entry>America/Indiana/Vevay</entry> <entry>America/Indiana/Vincennes</entry> - <entry>America/Indianapolis</entry> - <entry>America/Inuvik</entry> + <entry>America/Indiana/Winamac</entry> </row> <row> + <entry>America/Indianapolis</entry> + <entry>America/Inuvik</entry> <entry>America/Iqaluit</entry> <entry>America/Jamaica</entry> <entry>America/Jujuy</entry> - <entry>America/Juneau</entry> - <entry>America/Kentucky/Louisville</entry> </row> <row> + <entry>America/Juneau</entry> + <entry>America/Kentucky/Louisville</entry> <entry>America/Kentucky/Monticello</entry> <entry>America/Knox_IN</entry> <entry>America/La_Paz</entry> - <entry>America/Lima</entry> - <entry>America/Los_Angeles</entry> </row> <row> + <entry>America/Lima</entry> + <entry>America/Los_Angeles</entry> <entry>America/Louisville</entry> <entry>America/Maceio</entry> <entry>America/Managua</entry> - <entry>America/Manaus</entry> - <entry>America/Martinique</entry> </row> <row> + <entry>America/Manaus</entry> + <entry>America/Marigot</entry> + <entry>America/Martinique</entry> <entry>America/Mazatlan</entry> <entry>America/Mendoza</entry> + </row> + <row> <entry>America/Menominee</entry> <entry>America/Merida</entry> <entry>America/Mexico_City</entry> - </row> - <row> <entry>America/Miquelon</entry> <entry>America/Moncton</entry> + </row> + <row> <entry>America/Monterrey</entry> <entry>America/Montevideo</entry> <entry>America/Montreal</entry> - </row> - <row> <entry>America/Montserrat</entry> <entry>America/Nassau</entry> + </row> + <row> <entry>America/New_York</entry> <entry>America/Nipigon</entry> <entry>America/Nome</entry> - </row> - <row> <entry>America/Noronha</entry> <entry>America/North_Dakota/Center</entry> + </row> + <row> <entry>America/North_Dakota/New_Salem</entry> <entry>America/Panama</entry> <entry>America/Pangnirtung</entry> - </row> - <row> <entry>America/Paramaribo</entry> <entry>America/Phoenix</entry> + </row> + <row> <entry>America/Port-au-Prince</entry> <entry>America/Port_of_Spain</entry> <entry>America/Porto_Acre</entry> - </row> - <row> <entry>America/Porto_Velho</entry> <entry>America/Puerto_Rico</entry> + </row> + <row> <entry>America/Rainy_River</entry> <entry>America/Rankin_Inlet</entry> <entry>America/Recife</entry> + <entry>America/Regina</entry> + <entry>America/Resolute</entry> </row> <row> - <entry>America/Regina</entry> <entry>America/Rio_Branco</entry> <entry>America/Rosario</entry> <entry>America/Santiago</entry> <entry>America/Santo_Domingo</entry> + <entry>America/Sao_Paulo</entry> </row> <row> - <entry>America/Sao_Paulo</entry> <entry>America/Scoresbysund</entry> <entry>America/Shiprock</entry> + <entry>America/St_Barthelemy</entry> <entry>America/St_Johns</entry> <entry>America/St_Kitts</entry> </row> @@ -316,6 +326,10 @@ </row> <row> <entry>America/Yellowknife</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -323,7 +337,7 @@ </sect1> <sect1 xml:id="timezones.antarctica"> - <title>List of timezones in the group Antarctica</title> + <title>Liste des fuseaux horaires dans le groupe Antarctica (Antarctique)</title> <table> <title>Antarctica</title> <tgroup cols="5"> @@ -348,10 +362,10 @@ </sect1> <sect1 xml:id="timezones.arctic"> - <title>List of timezones in the group Arctic</title> + <title>Liste des fuseaux horaires dans le groupe Arctic (Arctique)</title> <table> <title>Arctic</title> - <tgroup cols="5"> + <tgroup cols="1"> <tbody> <row> <entry>Arctic/Longyearbyen</entry> @@ -484,6 +498,7 @@ <entry>Asia/Yakutsk</entry> <entry>Asia/Yekaterinburg</entry> <entry>Asia/Yerevan</entry> + <entry></entry> </row> </tbody> </tgroup> @@ -504,14 +519,18 @@ <entry>Atlantic/Faeroe</entry> </row> <row> + <entry>Atlantic/Faroe</entry> <entry>Atlantic/Jan_Mayen</entry> <entry>Atlantic/Madeira</entry> <entry>Atlantic/Reykjavik</entry> <entry>Atlantic/South_Georgia</entry> - <entry>Atlantic/St_Helena</entry> </row> <row> + <entry>Atlantic/St_Helena</entry> <entry>Atlantic/Stanley</entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -519,7 +538,7 @@ </sect1> <sect1 xml:id="timezones.australia"> - <title>List of timezones in the group Australia</title> + <title>Liste des fuseaux horaires dans le groupe Australia (Australie)</title> <table> <title>Australia</title> <tgroup cols="5"> @@ -534,27 +553,30 @@ <row> <entry>Australia/Currie</entry> <entry>Australia/Darwin</entry> + <entry>Australia/Eucla</entry> <entry>Australia/Hobart</entry> <entry>Australia/LHI</entry> - <entry>Australia/Lindeman</entry> </row> <row> + <entry>Australia/Lindeman</entry> <entry>Australia/Lord_Howe</entry> <entry>Australia/Melbourne</entry> <entry>Australia/North</entry> <entry>Australia/NSW</entry> - <entry>Australia/Perth</entry> </row> <row> + <entry>Australia/Perth</entry> <entry>Australia/Queensland</entry> <entry>Australia/South</entry> <entry>Australia/Sydney</entry> <entry>Australia/Tasmania</entry> - <entry>Australia/Victoria</entry> </row> <row> + <entry>Australia/Victoria</entry> <entry>Australia/West</entry> <entry>Australia/Yancowinna</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -614,39 +636,42 @@ <entry>Europe/Nicosia</entry> <entry>Europe/Oslo</entry> <entry>Europe/Paris</entry> - <entry>Europe/Prague</entry> + <entry>Europe/Podgorica</entry> </row> <row> + <entry>Europe/Prague</entry> <entry>Europe/Riga</entry> <entry>Europe/Rome</entry> <entry>Europe/Samara</entry> <entry>Europe/San_Marino</entry> - <entry>Europe/Sarajevo</entry> </row> <row> + <entry>Europe/Sarajevo</entry> <entry>Europe/Simferopol</entry> <entry>Europe/Skopje</entry> <entry>Europe/Sofia</entry> <entry>Europe/Stockholm</entry> - <entry>Europe/Tallinn</entry> </row> <row> + <entry>Europe/Tallinn</entry> <entry>Europe/Tirane</entry> <entry>Europe/Tiraspol</entry> <entry>Europe/Uzhgorod</entry> <entry>Europe/Vaduz</entry> - <entry>Europe/Vatican</entry> </row> <row> + <entry>Europe/Vatican</entry> <entry>Europe/Vienna</entry> <entry>Europe/Vilnius</entry> <entry>Europe/Volgograd</entry> <entry>Europe/Warsaw</entry> - <entry>Europe/Zagreb</entry> </row> <row> + <entry>Europe/Zagreb</entry> <entry>Europe/Zaporozhye</entry> <entry>Europe/Zurich</entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -675,6 +700,10 @@ </row> <row> <entry>Indian/Reunion</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> @@ -910,16 +939,20 @@ </row> <row> <entry>Zulu</entry> + <entry></entry> + <entry></entry> + <entry></entry> + <entry></entry> </row> </tbody> </tgroup> </table> - <note> + <warning> <simpara> N'utilisez aucun des fuseaux horaires listés ici, ils n'existent que pour des raisons de compatibilité ascendante. </simpara> - </note> + </warning> </sect1> </appendix> http://cvs.php.net/viewvc.cgi/phpdoc-fr/faq/installation.xml?r1=1.36&r2=1.37&diff_format=u Index: phpdoc-fr/faq/installation.xml diff -u phpdoc-fr/faq/installation.xml:1.36 phpdoc-fr/faq/installation.xml:1.37 --- phpdoc-fr/faq/installation.xml:1.36 Sun Feb 24 10:11:55 2008 +++ phpdoc-fr/faq/installation.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.36 $ --> -<!-- EN-Revision: 1.50 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.37 $ --> +<!-- EN-Revision: 1.51 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="faq.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -410,6 +410,9 @@ alors assurez-vous de redémarrer le serveur web après avoir effectué les modifications à votre &php.ini;. </para> + <para> + Voir aussi la fonction <function>php_ini_loaded_file</function>. + </para> </answer> </qandaentry> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/constants.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc-fr/language/oop5/constants.xml diff -u phpdoc-fr/language/oop5/constants.xml:1.13 phpdoc-fr/language/oop5/constants.xml:1.14 --- phpdoc-fr/language/oop5/constants.xml:1.13 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/constants.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.constants" xmlns="http://docbook.org/ns/docbook"> @@ -19,8 +19,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer une classe en utilisant une - variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés comme références dynamiques de classe. + variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <example> @@ -45,7 +45,7 @@ $class = new MyClass(); $class->showConstant(); -echo $class::constant."\n"; +echo $class::constant."\n"; // Depuis PHP 5.3.0 ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/overloading.xml?r1=1.24&r2=1.25&diff_format=u Index: phpdoc-fr/language/oop5/overloading.xml diff -u phpdoc-fr/language/oop5/overloading.xml:1.24 phpdoc-fr/language/oop5/overloading.xml:1.25 --- phpdoc-fr/language/oop5/overloading.xml:1.24 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/overloading.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.21 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.overloading" xmlns="http://docbook.org/ns/docbook"> @@ -11,8 +11,6 @@ et <function>__set</function>. Ces méthodes ne seront déclenchées que si votre objet, hérité ou non, ne contient pas le membre <modifier>public</modifier> ou la méthode auquel vous tentez d'accéder. - Toutes les méthodes surchargées ne doivent pas être définies en - tant que <link linkend="language.oop5.static">static</link>. Toutes les méthodes surchargées doivent être définies en tant que <link linkend="language.oop5.visibility">public</link>. </para> @@ -22,6 +20,10 @@ les méthodes __isset et __unset. La méthode __isset est également appelée avec la fonction <function>empty</function>. </para> + <para> + &php; 5.3.0 ajoute la possibilité de surcharger les méthodes + <link linkend="language.oop5.static">statiques</link> via __callStatic. + </para> <sect2 xml:id="language.oop5.overloading.members"> <title>Surcharge de membre</title> @@ -176,17 +178,22 @@ <methodparam><type>string</type><parameter>name</parameter></methodparam> <methodparam><type>array</type><parameter>arguments</parameter></methodparam> </methodsynopsis> + <methodsynopsis> + <type>mixed</type><methodname>__callStatic</methodname> + <methodparam><type>string</type><parameter>name</parameter></methodparam> + <methodparam><type>array</type><parameter>arguments</parameter></methodparam> + </methodsynopsis> <para> - La méthode magique <function>__call</function> permet la capture - des appels à des méthodes inexistantes. De cette façon, - <function>__call</function> peut être utilisée pour implémenter - un gestionnaire de méthodes défini par l'utilisateur qui dépend du nom de + Les méthodes magiques <function>__call</function> et <function>__callStatic</function> + permet la capture des appels à des méthodes inexistantes. De cette façon, + ces méthodes peuvent être utilisées pour implémenter un gestionnaire de + méthodes défini par l'utilisateur qui dépend du nom de la méthode réellement appelée. Ceci est particulièrement pratique pour implémenter une classe proxy, par exemple. Les arguments qui sont passés à la fonction devront être définis dans un tableau via le paramètre - <varname>$arguments</varname>. La valeur retournée par la méthode - <function>__call</function> sera retournée à la méthode appelante. + <varname>$arguments</varname>. La valeur retournée par ces méthodes + sera retournée à la méthode appelante. </para> <example> @@ -196,18 +203,18 @@ <?php class Caller { - private $x = array(1, 2, 3); + private $x = array(10, 20); public function __call($m, $a) { - print "Méthode $m appelée :\n"; + print "Méthode instanciée $m appelée :\n"; var_dump($a); return $this->x; } } $foo = new Caller(); -$a = $foo->test(1, "2", 3.4, true); +$a = $foo->test('a','b'); var_dump($a); ?> ]]> @@ -216,24 +223,61 @@ <screen role="php"> <![CDATA[ -Méthode test appelée : -array(4) { +Méthode instanciée test appelée : +array(2) { [0]=> - int(1) + string(1) "a" [1]=> - string(1) "2" - [2]=> - float(3.4) - [3]=> - bool(true) + string(1) "b" } -array(3) { +array(2) { [0]=> - int(1) + int(10) + [1]=> + int(20) +} +]]> + </screen> + </example> + + <example> + <title>Exemple de méthodes instanciées et surchargées avec __call</title> + <programlisting role="php"> + <![CDATA[ +<?php +class Caller +{ + private static $x = array(10, 20); + + public static function __callStatic($m, $a) + { + print "Méthode statique '$m' appelée :\n"; + var_dump($a); + return self::$x; + } +} + +$a = Caller::test('a', 'b'); +var_dump($a); +?> +]]> + </programlisting> + &example.outputs; + <screen role="php"> +<![CDATA[ + +Méthode statique 'test' appelée : +array(2) { + [0]=> + string(1) "a" + [1]=> + string(1) "b" +} +array(2) { + [0]=> + int(10) [1]=> - int(2) - [2]=> - int(3) + int(20) } ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/paamayim-nekudotayim.xml?r1=1.17&r2=1.18&diff_format=u Index: phpdoc-fr/language/oop5/paamayim-nekudotayim.xml diff -u phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.17 phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.18 --- phpdoc-fr/language/oop5/paamayim-nekudotayim.xml:1.17 Sat Jan 26 22:31:13 2008 +++ phpdoc-fr/language/oop5/paamayim-nekudotayim.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.18 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.paamayim-nekudotayim" xmlns="http://docbook.org/ns/docbook"> @@ -22,8 +22,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer une classe en utilisant - une variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés comme références dynamiques de classe. + une variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/oop5/static.xml?r1=1.20&r2=1.21&diff_format=u Index: phpdoc-fr/language/oop5/static.xml diff -u phpdoc-fr/language/oop5/static.xml:1.20 phpdoc-fr/language/oop5/static.xml:1.21 --- phpdoc-fr/language/oop5/static.xml:1.20 Sun Jan 27 14:08:18 2008 +++ phpdoc-fr/language/oop5/static.xml Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.20 $ --> -<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.21 $ --> +<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.oop5.static" xmlns="http://docbook.org/ns/docbook"> @@ -38,8 +38,8 @@ <para> Depuis &php; 5.3.0, il est possible de référencer la classe en utilisant - une variable. Les mots clés comme <literal>self</literal>, <literal>parent</literal> ou - <literal>static</literal> ne sont pas autorisés dans les références des classs dynamiques. + une variable. La valeur de la variable ne peut être un mot clé (e.g. <literal>self</literal>, + <literal>parent</literal> et <literal>static</literal>). </para> <example> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language-snippets.ent?r1=1.171&r2=1.172&diff_format=u Index: phpdoc-fr/language-snippets.ent diff -u phpdoc-fr/language-snippets.ent:1.171 phpdoc-fr/language-snippets.ent:1.172 --- phpdoc-fr/language-snippets.ent:1.171 Wed Jan 23 15:59:57 2008 +++ phpdoc-fr/language-snippets.ent Fri Mar 7 16:13:47 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.171 $ --> -<!-- EN-Revision: 1.214 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.172 $ --> +<!-- EN-Revision: 1.216 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- @@ -747,8 +747,12 @@ <para>Le paramètre <parameter>encoding</parameter> spécifie le jeu de caractères utilisé pour les documents en entrées et sorties. Les valeurs possibles de <parameter>encoding</parameter> sont : -ascii, latin0, latin1, raw, utf8, iso2022, mac, win1252, ibm858, utf16, -utf16le, utf16be, big5 et shiftjis.</para>'> +<literal>ascii</literal>, <literal>latin0</literal>, <literal>latin1</literal>, +<literal>raw</literal>, <literal>utf8</literal>, <literal>iso2022</literal>, +<literal>mac</literal>, <literal>win1252</literal>, <literal>ibm858</literal>, +<literal>utf16</literal>, <literal>utf16le</literal>, +<literal>utf16be</literal>, <literal>big5</literal> et +<literal>shiftjis</literal>.</para>'> <!-- Snippets for the installation section --> <!ENTITY warn.apache2.compat '<warning><para>Nous ne recommandons pas @@ -805,10 +809,10 @@ <!ENTITY note.runkit.sandbox '<note><simpara>Support Sandbox (requis pour <function>runkit_lint</function>, <function>runkit_lint_file</function> -et la classe Runkit_Sandbox) n'est seulement disponible qu'avec &php; 5.1 -ou les versions de &php; 5.0 spécialement patché et nécessite que la protection -de thread soit activée. Voyez le fichier README inclus dans le paquetage -runkit pour plus d'informations. +et la classe <classname>Runkit_Sandbox</classname>) n'est seulement disponible +qu'avec &php; 5.1 ou les versions de &php; 5.0 spécialement patché et +nécessite que la protection de thread soit activée. Voyez le fichier README +inclus dans le paquetage runkit pour plus d'informations. </simpara></note>'> <!ENTITY note.runkit.internal-override '<note><simpara>Par défaut, seulement @@ -914,7 +918,8 @@ Les fonctions arithmétiques VARIANT sont interfacées sur les fonctions de la librairie COM équivalentes ; pour plus d'informations sur ces fonctions, veuillez consulter la bibliothèque MSDN. Les fonctions &php; sont nommées de façon légèrement différentes : - par exemple, variant_add(), en &php;, correspond à VarAdd() dans la documentation MSDN. + par exemple, <function>variant_add</function>, en &php;, correspond à VarAdd() dans la + documentation MSDN. </para> </note> '> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/classobj/functions/get-class.xml?r1=1.15&r2=1.16&diff_format=u Index: phpdoc-fr/reference/classobj/functions/get-class.xml diff -u phpdoc-fr/reference/classobj/functions/get-class.xml:1.15 phpdoc-fr/reference/classobj/functions/get-class.xml:1.16 --- phpdoc-fr/reference/classobj/functions/get-class.xml:1.15 Sat Jul 21 06:37:34 2007 +++ phpdoc-fr/reference/classobj/functions/get-class.xml Fri Mar 7 16:13:48 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.15 $ --> -<!-- EN-Revision: 1.11 Maintainer: dams Status: ready --> +<!-- $Revision: 1.16 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.get-class" xmlns="http://docbook.org/ns/docbook"> @@ -81,10 +81,6 @@ <?php class foo { - function foo() - { - // un peu de code - } function name() { @@ -112,6 +108,36 @@ ]]> </screen> </example> + <example> + <title>Utilisation de <function>get_class</function> dans une superclasse</title> + <programlisting role="php"> +<![CDATA[ +<?php + +abstract class bar { + public function __construct() + { + var_dump(get_class($this)); + var_dump(get_class()); + } +} + +class foo extends bar { +} + +new foo; + +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +string(3) "foo" +string(3) "bar" +]]> + </screen> + </example> </para> </refsect1> <refsect1 role="seealso">