cvs: phpdoc-fr /reference/spl splfileinfo.xml splfixedarray.xml splobjectstorage.xml splpriorityqueue.xml

From: Date: Mon, 13 Apr 2009 12:29:05 +0000
Subject: cvs: phpdoc-fr /reference/spl splfileinfo.xml splfixedarray.xml splobjectstorage.xml splpriorityqueue.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-7032@lists.php.net to get a copy of this message
dams Mon Apr 13 12:29:05 2009 UTC Added files: /phpdoc-fr/reference/spl splfixedarray.xml splobjectstorage.xml Modified files: /phpdoc-fr/reference/spl splfileinfo.xml splpriorityqueue.xml Log: initial translation

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/splfileinfo.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/reference/spl/splfileinfo.xml diff -u phpdoc-fr/reference/spl/splfileinfo.xml:1.1 phpdoc-fr/reference/spl/splfileinfo.xml:1.2 --- phpdoc-fr/reference/spl/splfileinfo.xml:1.1 Wed Jan 7 17:33:52 2009 +++ phpdoc-fr/reference/spl/splfileinfo.xml Mon Apr 13 12:29:05 2009 @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splfileinfo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> - <title>La classe SplFileInfo</title> + <title>La classe <classname>SplFileInfo</classname></title> <titleabbrev>SplFileInfo</titleabbrev> <partintro> @@ -14,8 +14,8 @@ <section xml:id="splfileinfo.intro"> &reftitle.intro; <para> - La classe SplFileInfo fournit une interface de haut niveau avec - les informations de fichiers. + La classe <classname>SplFileInfo</classname> fournit une interface + de haut niveau avec les informations de fichiers. </para> </section> <!-- }}} --> @@ -35,7 +35,7 @@ </classsynopsisinfo> <!-- }}} --> - <classsynopsisinfo role="comment">Méthodes</classsynopsisinfo> + <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfileinfo')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/splpriorityqueue.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/reference/spl/splpriorityqueue.xml diff -u phpdoc-fr/reference/spl/splpriorityqueue.xml:1.1 phpdoc-fr/reference/spl/splpriorityqueue.xml:1.2 --- phpdoc-fr/reference/spl/splpriorityqueue.xml:1.1 Wed Jan 7 17:33:52 2009 +++ phpdoc-fr/reference/spl/splpriorityqueue.xml Mon Apr 13 12:29:05 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splpriorityqueue" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> - <title>La classe SplPriorityQueue</title> + <title>La classe <classname>SplPriorityQueue</classname></title> <titleabbrev>SplPriorityQueue</titleabbrev> <partintro> @@ -13,8 +13,8 @@ <section xml:id="splpriorityqueue.intro"> &reftitle.intro; <para> - La classe SplPriorityQueue fournit les fonctionnalitées d'une queue à - prioritées, implémentées avec une pile. + La classe <classname>SplPriorityQueue</classname> fournit les + fonctionnalités d'une queue à priorités, implémentées avec une pile. </para> </section> <!-- }}} --> @@ -53,7 +53,7 @@ </fieldsynopsis> }}} --> - <classsynopsisinfo role="comment">Méthodes</classsynopsisinfo> + <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splpriorityqueue')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splpriorityqueue')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/splfixedarray.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/spl/splfixedarray.xml +++ phpdoc-fr/reference/spl/splfixedarray.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.splfixedarray" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe SplFixedArray</title> <titleabbrev>SplFixedArray</titleabbrev> <partintro> <!-- {{{ splfixedarray intro --> <section xml:id="splfixedarray.intro"> &reftitle.intro; <para> La classe <classname>SplFixedArray</classname> fournit les fonctionnalités principales d'un tableau. La différence majeure entre un objet <classname>SplFixedArray</classname> et un &array; standard de PHP est que <classname>SplFixedArray<>classname> est de taille fixe, et n'utilise que des &integer; dans ses index. L'avantage est alors qu'il est plus rapide que les tableaux. </para> </section> <!-- }}} --> <section xml:id="splfixedarray.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>SplFixedArray</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>SplFixedArray</classname> </ooclass> <oointerface> <interfacename>Iterator</interfacename> </oointerface> <oointerface> <interfacename>ArrayAccess</interfacename> </oointerface> <oointerface> <interfacename>Countable</interfacename> </oointerface> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfixedarray')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[1])" /> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splfixedarray')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> </section> <!-- {{{ splfixedarray examples --> <section xml:id="splfixedarray.examples"> &reftitle.examples; <para> <example> <title>Exemple avec <classname>SplFixedArray</classname></title> <programlisting role="php"> <![CDATA[ <?php // Initialisation d'un tableau avec une taille fixe $array = new SplFixedArray(5); $array[1] = 2; $array[4] = "foo"; var_dump($array[0]); // NULL var_dump($array[1]); // int(2) var_dump($array["4"]); // string(3) "foo" // Augmentation de la taille à 10 $array->setSize(10); $array[9] = "asdf"; // Réduction de taille de 2 $array->setSize(2); // Les lignes suivantes émettent une RuntimeException : index invalide ou hors de l'intervalle try { var_dump($array["non-numeric"]); } catch(RuntimeException $re) { echo "RuntimeException : ".$re->getMessage()."\n"; } try { var_dump($array[-1]); } catch(RuntimeException $re) { echo "RuntimeException : ".$re->getMessage()."\n"; } try { var_dump($array[5]); } catch(RuntimeException $re) { echo "RuntimeException : ".$re->getMessage()."\n"; } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ NULL int(2) string(3) "foo" RuntimeException: Index invalid or out of range RuntimeException: Index invalid or out of range RuntimeException: Index invalid or out of range ]]> </screen> </example> </para> </section> <!-- }}} --> <!-- {{{ splfixedarray properties <section xml:id="splfixedarray.props"> &reftitle.properties; <variablelist> <varlistentry xml:id="splfixedarray.props.name"> <term><varname>name</varname></term> <listitem> <para>Prop description</para> </listitem> </varlistentry> </variablelist> </section> }}} --> </partintro> &reference.spl.entities.splfixedarray; </phpdoc:classref> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/splobjectstorage.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/spl/splobjectstorage.xml +++ phpdoc-fr/reference/spl/splobjectstorage.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <phpdoc:classref xml:id="class.splobjectstorage" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe SplObjectStorage</title> <titleabbrev>SplObjectStorage</titleabbrev> <partintro> <!-- {{{ SplObjectStorage intro --> <section xml:id="splobjectstorage.intro"> &reftitle.intro; <para> La classe <classname>SplObjectStorage</classname> fournit une carte d'objets ou de données, ou encore, en ignorant les index, un ensemble d'objets. Ce double objectif est utile dans de nombreuses situations, où il faut identifier de manière unique des objets. </para> </section> <!-- }}} --> <section xml:id="splobjectstorage.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>SplObjectStorage</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>SplObjectStorage</classname> </ooclass> <oointerface> <interfacename>Countable</interfacename> </oointerface> <oointerface> <interfacename>Iterator</interfacename> </oointerface> <oointerface> <interfacename>Traversable</interfacename> </oointerface> <oointerface> <interfacename>Serializable</interfacename> </oointerface> <oointerface> <interfacename>ArrayAccess</interfacename> </oointerface> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.splobjectstorage')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> <!-- {{{ splobjectstorage examples --> <section xml:id="splobjectstorage.examples"> &reftitle.examples; <para> <example> <title>Exemple avec <classname>SplObjectStorage</classname>, sous forme d'ensemble d'objets</title> <programlisting role="php"> <![CDATA[ <?php // Un ensemble d'objets $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $s->attach($o1); $s->attach($o2); var_dump($s->contains($o1)); var_dump($s->contains($o2)); var_dump($s->contains($o3)); $s->detach($o2); var_dump($s->contains($o1)); var_dump($s->contains($o2)); var_dump($s->contains($o3)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ bool(true) bool(true) bool(false) bool(true) bool(false) bool(false) ]]> </screen> </example> <example> <title>Exemple avec <classname>SplObjectStorage</classname>, sous forme de carte</title> <programlisting role="php"> <![CDATA[ <?php // Une carte d'objets $s = new SplObjectStorage(); $o1 = new StdClass; $o2 = new StdClass; $o3 = new StdClass; $s[$o1] = "data for object 1"; $s[$o2] = array(1,2,3); if (isset($s[$o2])) { var_dump($s[$o2]); } ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } ]]> </screen> </example> </para> </section> <!-- }}} --> </partintro> &reference.spl.entities.splobjectstorage; </phpdoc:classref> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.fr (#7032) next »