cvs: phpdoc-fr /reference/overload .cvsignore book.xml constants.xml examples.xml reference.xml setup.xml /reference/ovrimos .cvsignore book.xml
constants.xml examples.xml reference.xml setup.xml /reference/paradox book.xml constants.xml reference.xml setup.xml
| From: | Yannick Torres | Date: | Fri, 28 Mar 2008 07:50:38 +0000 |
| Subject: | cvs: phpdoc-fr /reference/overload .cvsignore book.xml constants.xml examples.xml reference.xml setup.xml /reference/ovrimos .cvsignore book.xml constants.xml examples.xml reference.xml setup.xml /reference/paradox book.xml constants.xml reference.xml setup.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-5643@lists.php.net to get a copy of this message | ||
yannick Fri Mar 28 07:50:38 2008 UTC
Added files:
/phpdoc-fr/reference/overload book.xml constants.xml examples.xml
setup.xml
/phpdoc-fr/reference/ovrimos book.xml constants.xml examples.xml
setup.xml
/phpdoc-fr/reference/paradox book.xml setup.xml
Removed files:
/phpdoc-fr/reference/overload .cvsignore
/phpdoc-fr/reference/ovrimos .cvsignore
Modified files:
/phpdoc-fr/reference/overload reference.xml
/phpdoc-fr/reference/ovrimos reference.xml
/phpdoc-fr/reference/paradox constants.xml reference.xml
Log:
sync with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/overload/reference.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/reference/overload/reference.xml diff -u phpdoc-fr/reference/overload/reference.xml:1.19 phpdoc-fr/reference/overload/reference.xml:1.20 --- phpdoc-fr/reference/overload/reference.xml:1.19 Mon Dec 10 17:10:10 2007 +++ phpdoc-fr/reference/overload/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,130 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.13 Maintainer: didou Status: ready --> -<!-- State: deprecated --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <reference xml:id="ref.overload" xmlns="http://docbook.org/ns/docbook"> - <title>Overload</title> - <titleabbrev>Surcharge d'objets</titleabbrev> +<reference xml:id="ref.overload" xmlns="http://docbook.org/ns/docbook"> + <title>&Functions; sur la surcharge d'objets</title> - <partintro> - - <section xml:id="overload.intro"> - &reftitle.intro; - <para> - Le but de cette extension est de permettre de maîtriser les appels - aux méthodes et aux membres d'un objet. Seule une fonction est définie - dans cette extension, <function>overload</function> qui demande le - nom de la classe qui doit supporter cette fonctionnalité. Cette classe doit - être pourvue des méthodes nécessaires au bon fonctionnement de l'extension, - c'est-à-dire : <literal>__get()</literal>, <literal>__set()</literal> et - <literal>__call()</literal>, qui servent respectivement à lire, à modifier - un membre et à appeler une méthode. De cette manière, l'overloading - assure un contrôle sur les fonctions appelées. À l'intérieur de ces - méthodes, l'overloading est désactivé, pour que vous puissiez accéder - à l'objet. - </para> - &warn.experimental; - <warning> - <para> - Cette extension ne fait pas partie de &php; 5. &php; 5 supporte - <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal> - nativement. - Voir la page traitant de la <link linkend="language.oop5.overloading">surcharge en &php; 5</link> - pour plus d'informations. - </para> - </warning> - </section> + &reference.overload.entities.functions; - <section xml:id="overload.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.overload.configure; - - <section xml:id="overload.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="overload.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="overload.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="overload.examples"> - &reftitle.examples; - <para> - Voici un exemple simple de fonctions utilisant <function>overload</function> : - <example> - <title>Overload avec une classe &php;</title> - <programlisting role="php"> -<![CDATA[ -<?php - -class OO { - var $a = 111; - var $elem = array('b' => 9, 'c' => 42); - - // Fonction de callback pour la lecture de membre - function __get($prop_name, &$prop_value) - { - if (isset($this->elem[$prop_name])) { - $prop_value = $this->elem[$prop_name]; - return true; - } else { - return false; - } - } - - // Fonction de callback pour l'écriture de membre - function __set($prop_name, $prop_value) - { - $this->elem[$prop_name] = $prop_value; - return true; - } -} - -// Ici, l'initiation de l'overload -overload('OO'); - -$o = new OO; -echo "\$o->a: $o->a\n"; // $o->a: 111 -echo "\$o->b: $o->b\n"; // $o->b: 9 -echo "\$o->c: $o->c\n"; // $o->c: 42 -echo "\$o->d: $o->d\n"; // $o->d: - -// ajouter une nouvelle valeur au membre $elem, en programmation OOP -$o->x = 56; - -// instantiation de la classe stdclass (elle existe par défaut en PHP 4) -// $val n'est pas overloadée! -$val = new stdclass; -$val->prop = 555; - -// Forcez "a" à être un tableau avec l'élément $val -// Mais _set() forcera cet élément dans le tableau $elem -$o->a = array($val); -var_dump($o->a[0]->prop); - -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.overload.entities.functions; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: @@ -145,5 +29,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/reference.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/ovrimos/reference.xml diff -u phpdoc-fr/reference/ovrimos/reference.xml:1.16 phpdoc-fr/reference/ovrimos/reference.xml:1.17 --- phpdoc-fr/reference/ovrimos/reference.xml:1.16 Mon Dec 10 17:10:11 2007 +++ phpdoc-fr/reference/ovrimos/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,83 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> -<!-- Purpose: database.vendors --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <reference xml:id="ref.ovrimos" xmlns="http://docbook.org/ns/docbook"> - <title>Ovrimos SQL</title> - <titleabbrev>OvrimosSQL</titleabbrev> - <partintro> - <section xml:id="ovrimos.intro"> - &reftitle.intro; - <para> - Ovrimos SQL Server est une base de données relationnelle client/serveur - et transactionnelle, combinée avec des fonctionnalités web, et des - transactions rapides. - </para> - <note> - <para> - &pecl.moved-ver;4.4.5 et &php; 5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> + <title>&Functions; Ovrimos SQL</title> + <titleabbrev>OvrimosSQL</titleabbrev> - <section xml:id="ovrimos.requirements"> - &reftitle.required; - <para> - Vous devez installer la bibliothèque sqlcli, qui est disponible dans la - distribution de Ovrimos SQL Server. - </para> - </section> + &reference.ovrimos.entities.functions; - &reference.ovrimos.configure; +</reference> - <section xml:id="ovrimos.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ovrimos.resources"> - &reftitle.resources; - <para> - </para> - </section> - - <section xml:id="ovrimos.examples"> - &reftitle.examples; - <para> - <example> - <title> - Connexion au serveur Ovrimos SQL Server et sélection d'une table système - </title> - <programlisting role="php"> -<![CDATA[ -<?php -$conn = ovrimos_connect("server.domain.com", "8001", "admin", "password"); -if ($conn != 0) { - echo 'Connexion établie!'; - $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); - if ($res != 0) { - echo 'Requête effectuée!'; - ovrimos_result_all($res); - ovrimos_free_result($res); - } - ovrimos_close($conn); -} -?> -]]> - </programlisting> - </example> - Cet exemple effectue une connexion à un serveur Ovrimos SQL Server. - </para> - </section> - </partintro> - - &reference.ovrimos.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -94,4 +27,4 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/paradox/constants.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/paradox/constants.xml diff -u phpdoc-fr/reference/paradox/constants.xml:1.5 phpdoc-fr/reference/paradox/constants.xml:1.6 --- phpdoc-fr/reference/paradox/constants.xml:1.5 Mon Jul 23 19:07:06 2007 +++ phpdoc-fr/reference/paradox/constants.xml Fri Mar 28 07:50:38 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> -<section xml:id="paradox.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="paradox.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -147,7 +147,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/paradox/reference.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/paradox/reference.xml diff -u phpdoc-fr/reference/paradox/reference.xml:1.9 phpdoc-fr/reference/paradox/reference.xml:1.10 --- phpdoc-fr/reference/paradox/reference.xml:1.9 Mon Dec 10 17:10:11 2007 +++ phpdoc-fr/reference/paradox/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,53 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> -<!-- Purpose: database.vendors --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <reference xml:id="ref.paradox" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Accès aux fichiers Paradox</title> - <titleabbrev>Paradox</titleabbrev> + <title>Paradox File Access</title> <partintro> - <section xml:id="paradox.intro"> - &reftitle.intro; - &warn.experimental; - <para> - Ce module vous permet de lire des bases de données Paradox ainsi que des - fichiers d'index primaires et des fichiers Blob. Il peut également créer des bases - de données Paradox mais dû au manque de documentation surle format des fichiers - Paradox, il se peut que les bases créées ne soient pas lisibles avec toutes les autres - applications. Les bases de données cryptées peuvent être lues sans pour autant spécifier - de mot de passe si pxlib >= 0.5.0 est utilisé. - </para> - <note> - <para> - Ce module est toujours en cours de développement et peut - changer, même si l'API ne sera surement pas modifié en profondeur. - </para> - </note> - </section> - - <section xml:id="paradox.requirements"> - &reftitle.required; - <para> - Vous devez avoir au minimum &php; 5.0.0 et libpx >= 0.4.4 - pour la plupart des fonctions. Quelques nouvelles fonctions ne sont disponibles - que si pxlib >= 0.6.0 est utilisé. L'écriture et la lecture des bases de données - cryptées nécessitent pxlib >= 0.5.0. - La bibliothèque Paradox (libpx) est disponible sur - <link xlink:href="&url.paradox.pxlib;">&url.paradox.pxlib;</link>. - </para> - </section> - - &reference.paradox.configure; - - <section xml:id="paradox.configuration"> - &reftitle.runtime; - &no.config; - </section> + <!-- FIXME: Apparently there is a class here.. --> <section xml:id="paradox.oo-api"> <title>API orientée objet</title> <para> @@ -175,19 +136,9 @@ </table> </para> </section> - - <section xml:id="paradox.resources"> - &reftitle.resources; - <para> - <function>px_new</function> crée un nouvel objet Paradox, nécessaire - à toutes les fonctions Paradox. - </para> - </section> - - &reference.paradox.constants; </partintro> -&reference.paradox.entities.functions; + &reference.paradox.entities.functions; </reference> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/overload/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/book.xml +++ phpdoc-fr/reference/overload/book.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <!-- State: deprecated --> <book xml:id="book.overload" xmlns="http://docbook.org/ns/docbook"> <title>Surcharge d'objets</title> <titleabbrev>Surcharge d'objets</titleabbrev> <preface xml:id="intro.overload"> &reftitle.intro; <para> Le but de cette extension est de permettre de maîtriser les appels aux méthodes et aux membres d'un objet. Seule une fonction est définie dans cette extension, <function>overload</function> qui demande le nom de la classe qui doit supporter cette fonctionnalité. Cette classe doit être pourvue des méthodes nécessaires au bon fonctionnement de l'extension, c'est-à-dire : <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal>, qui servent respectivement à lire, à modifier un membre et à appeler une méthode. De cette manière, l'overloading assure un contrôle sur les fonctions appelées. À l'intérieur de ces méthodes, l'overloading est désactivé, pour que vous puissiez accéder à l'objet. </para> &warn.experimental; <warning> <para> Cette extension ne fait pas partie de &php; 5. &php; 5 supporte <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal> nativement. Voir la page traitant de la <link linkend="language.oop5.overloading">surcharge en &php; 5</link> pour plus d'informations. </para> </warning> </preface> &reference.overload.setup; &reference.overload.constants; &reference.overload.examples; &reference.overload.reference; </book> <!-- 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/overload/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/constants.xml +++ phpdoc-fr/reference/overload/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="overload.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/overload/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/examples.xml +++ phpdoc-fr/reference/overload/examples.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="overload.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <section xml:id="overload.examples.basic"> <para> Voici un exemple simple de fonctions utilisant <function>overload</function> : <example> <title>Overload avec une classe &php;</title> <programlisting role="php"> <![CDATA[ <?php class OO { var $a = 111; var $elem = array('b' => 9, 'c' => 42); // Fonction de callback pour la lecture de membre function __get($prop_name, &$prop_value) { if (isset($this->elem[$prop_name])) { $prop_value = $this->elem[$prop_name]; return true; } else { return false; } } // Fonction de callback pour l'écriture de membre function __set($prop_name, $prop_value) { $this->elem[$prop_name] = $prop_value; return true; } } // Ici, l'initiation de l'overload overload('OO'); $o = new OO; echo "\$o->a: $o->a\n"; // print: $o->a: 111 echo "\$o->b: $o->b\n"; // print: $o->b: 9 echo "\$o->c: $o->c\n"; // print: $o->c: 42 echo "\$o->d: $o->d\n"; // print: $o->d: // ajout d'une nouvelle valeur au membre $elem, en programmation OOP $o->x = 56; // instantiation de la classe stdclass (elle existe par défaut en PHP 4) // $val n'est pas surchargée ! $val = new stdclass; $val->prop = 555; // Forcez "a" à être un tableau avec l'élément $val // Mais _set() forcera cet élément dans le tableau $elem $o->a = array($val); var_dump($o->a[0]->prop); ?> ]]> </programlisting> </example> </para> </section> </appendix> <!-- 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/overload/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/setup.xml +++ phpdoc-fr/reference/overload/setup.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="overload.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <section xml:id="overload.requirements"> &reftitle.required; &no.requirement; </section> &reference.overload.configure; <section xml:id="overload.configuration"> &reftitle.runtime; &no.config; </section> <section xml:id="overload.resources"> &reftitle.resources; &no.resource; </section> </chapter> <!-- 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/ovrimos/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/book.xml +++ phpdoc-fr/reference/ovrimos/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> <book xml:id="book.ovrimos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>SQL Ovrimos</title> <!-- {{{ preface --> <preface xml:id="intro.ovrimos"> &reftitle.intro; <para> Ovrimos SQL Server est une base de données relationnelle client/serveur et transactionnelle, combinée avec des fonctionnalités web, et des transactions rapides. </para> <note> <para> &pecl.moved-ver;4.4.5 et &php; 5.1.0. </para> </note> ¬e.no-windows.extension; </preface> <!-- }}} --> &reference.ovrimos.setup; &reference.ovrimos.constants; &reference.ovrimos.examples; &reference.ovrimos.reference; </book> <!-- 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/ovrimos/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/constants.xml +++ phpdoc-fr/reference/ovrimos/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="ovrimos.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/ovrimos/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/examples.xml +++ phpdoc-fr/reference/ovrimos/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="ovrimos.examples" xmlns="http://docbook.org/ns/docbook"> &reftitle.examples; <section xml:id="ovrimos.examples-basic"> <para> <example> <title> Connexion au serveur Ovrimos SQL Server et sélection d'une table système </title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("server.domain.com", "8001", "admin", "password"); if ($conn != 0) { echo "Connexion établie !"; $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { echo "Requête effectuée !"; ovrimos_result_all($res); ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </para> </section> </chapter> <!-- 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/ovrimos/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/setup.xml +++ phpdoc-fr/reference/ovrimos/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="ovrimos.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="ovrimos.requirements"> &reftitle.required; <para> Vous devez installer la bibliothèque sqlcli, qui est disponible dans la distribution de Ovrimos SQL Server. </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.ovrimos.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="ovrimos.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="ovrimos.resources"> &reftitle.resources; &no.resource; </section> <!-- }}} --> </chapter> <!-- 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/paradox/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/paradox/book.xml +++ phpdoc-fr/reference/paradox/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> <!-- State: experimental --> <book xml:id="book.paradox" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Paradox</title> <!-- {{{ preface --> <preface xml:id="intro.paradox"> &reftitle.intro; <para> Ce module vous permet de lire des bases de données Paradox ainsi que des fichiers d'index primaires et des fichiers Blob. Il peut également créer des bases de données Paradox mais dû au manque de documentation surle format des fichiers Paradox, il se peut que les bases créées ne soient pas lisibles avec toutes les autres applications. Les bases de données cryptées peuvent être lues sans pour autant spécifier de mot de passe si pxlib >= 0.5.0 est utilisé. </para> <note> <para> Ce module est toujours en cours de développement et peut changer, même si l'API ne sera surement pas modifié en profondeur. </para> </note> &warn.experimental; </preface> <!-- }}} --> &reference.paradox.setup; &reference.paradox.constants; &reference.paradox.reference; </book> <!-- 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/paradox/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/paradox/setup.xml +++ phpdoc-fr/reference/paradox/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <chapter xml:id="paradox.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="paradox.requirements"> &reftitle.required; <para> Vous devez avoir au minimum &php; 5.0.0 et libpx >= 0.4.4 pour la plupart des fonctions. Quelques nouvelles fonctions ne sont disponibles que si pxlib >= 0.6.0 est utilisé. L'écriture et la lecture des bases de données cryptées nécessitent pxlib >= 0.5.0. La bibliothèque Paradox (libpx) est disponible sur <link xlink:href="&url.paradox.pxlib;">&url.paradox.pxlib;</link>. </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.paradox.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="paradox.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="paradox.resources"> &reftitle.resources; <para> <function>px_new</function> crée un nouvel objet Paradox, nécessaire à toutes les fonctions Paradox. </para> </section> <!-- }}} --> </chapter> <!-- 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/overload/reference.xml?r1=1.19&r2=1.20&diff_format=u Index: phpdoc-fr/reference/overload/reference.xml diff -u phpdoc-fr/reference/overload/reference.xml:1.19 phpdoc-fr/reference/overload/reference.xml:1.20 --- phpdoc-fr/reference/overload/reference.xml:1.19 Mon Dec 10 17:10:10 2007 +++ phpdoc-fr/reference/overload/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,130 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.13 Maintainer: didou Status: ready --> -<!-- State: deprecated --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <reference xml:id="ref.overload" xmlns="http://docbook.org/ns/docbook"> - <title>Overload</title> - <titleabbrev>Surcharge d'objets</titleabbrev> +<reference xml:id="ref.overload" xmlns="http://docbook.org/ns/docbook"> + <title>&Functions; sur la surcharge d'objets</title> - <partintro> - - <section xml:id="overload.intro"> - &reftitle.intro; - <para> - Le but de cette extension est de permettre de maîtriser les appels - aux méthodes et aux membres d'un objet. Seule une fonction est définie - dans cette extension, <function>overload</function> qui demande le - nom de la classe qui doit supporter cette fonctionnalité. Cette classe doit - être pourvue des méthodes nécessaires au bon fonctionnement de l'extension, - c'est-à-dire : <literal>__get()</literal>, <literal>__set()</literal> et - <literal>__call()</literal>, qui servent respectivement à lire, à modifier - un membre et à appeler une méthode. De cette manière, l'overloading - assure un contrôle sur les fonctions appelées. À l'intérieur de ces - méthodes, l'overloading est désactivé, pour que vous puissiez accéder - à l'objet. - </para> - &warn.experimental; - <warning> - <para> - Cette extension ne fait pas partie de &php; 5. &php; 5 supporte - <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal> - nativement. - Voir la page traitant de la <link linkend="language.oop5.overloading">surcharge en &php; 5</link> - pour plus d'informations. - </para> - </warning> - </section> + &reference.overload.entities.functions; - <section xml:id="overload.requirements"> - &reftitle.required; - &no.requirement; - </section> - - &reference.overload.configure; - - <section xml:id="overload.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="overload.resources"> - &reftitle.resources; - &no.resource; - </section> - - <section xml:id="overload.constants"> - &reftitle.constants; - &no.constants; - </section> - - <section xml:id="overload.examples"> - &reftitle.examples; - <para> - Voici un exemple simple de fonctions utilisant <function>overload</function> : - <example> - <title>Overload avec une classe &php;</title> - <programlisting role="php"> -<![CDATA[ -<?php - -class OO { - var $a = 111; - var $elem = array('b' => 9, 'c' => 42); - - // Fonction de callback pour la lecture de membre - function __get($prop_name, &$prop_value) - { - if (isset($this->elem[$prop_name])) { - $prop_value = $this->elem[$prop_name]; - return true; - } else { - return false; - } - } - - // Fonction de callback pour l'écriture de membre - function __set($prop_name, $prop_value) - { - $this->elem[$prop_name] = $prop_value; - return true; - } -} - -// Ici, l'initiation de l'overload -overload('OO'); - -$o = new OO; -echo "\$o->a: $o->a\n"; // $o->a: 111 -echo "\$o->b: $o->b\n"; // $o->b: 9 -echo "\$o->c: $o->c\n"; // $o->c: 42 -echo "\$o->d: $o->d\n"; // $o->d: - -// ajouter une nouvelle valeur au membre $elem, en programmation OOP -$o->x = 56; - -// instantiation de la classe stdclass (elle existe par défaut en PHP 4) -// $val n'est pas overloadée! -$val = new stdclass; -$val->prop = 555; - -// Forcez "a" à être un tableau avec l'élément $val -// Mais _set() forcera cet élément dans le tableau $elem -$o->a = array($val); -var_dump($o->a[0]->prop); - -?> -]]> - </programlisting> - </example> - </para> - </section> - </partintro> - -&reference.overload.entities.functions; - - </reference> +</reference> <!-- Keep this comment at the end of the file Local variables: @@ -145,5 +29,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> - +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/reference.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/ovrimos/reference.xml diff -u phpdoc-fr/reference/ovrimos/reference.xml:1.16 phpdoc-fr/reference/ovrimos/reference.xml:1.17 --- phpdoc-fr/reference/ovrimos/reference.xml:1.16 Mon Dec 10 17:10:11 2007 +++ phpdoc-fr/reference/ovrimos/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,83 +1,16 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> -<!-- Purpose: database.vendors --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <reference xml:id="ref.ovrimos" xmlns="http://docbook.org/ns/docbook"> - <title>Ovrimos SQL</title> - <titleabbrev>OvrimosSQL</titleabbrev> - <partintro> - <section xml:id="ovrimos.intro"> - &reftitle.intro; - <para> - Ovrimos SQL Server est une base de données relationnelle client/serveur - et transactionnelle, combinée avec des fonctionnalités web, et des - transactions rapides. - </para> - <note> - <para> - &pecl.moved-ver;4.4.5 et &php; 5.1.0. - </para> - </note> - ¬e.no-windows.extension; - </section> + <title>&Functions; Ovrimos SQL</title> + <titleabbrev>OvrimosSQL</titleabbrev> - <section xml:id="ovrimos.requirements"> - &reftitle.required; - <para> - Vous devez installer la bibliothèque sqlcli, qui est disponible dans la - distribution de Ovrimos SQL Server. - </para> - </section> + &reference.ovrimos.entities.functions; - &reference.ovrimos.configure; +</reference> - <section xml:id="ovrimos.configuration"> - &reftitle.runtime; - &no.config; - </section> - - <section xml:id="ovrimos.resources"> - &reftitle.resources; - <para> - </para> - </section> - - <section xml:id="ovrimos.examples"> - &reftitle.examples; - <para> - <example> - <title> - Connexion au serveur Ovrimos SQL Server et sélection d'une table système - </title> - <programlisting role="php"> -<![CDATA[ -<?php -$conn = ovrimos_connect("server.domain.com", "8001", "admin", "password"); -if ($conn != 0) { - echo 'Connexion établie!'; - $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); - if ($res != 0) { - echo 'Requête effectuée!'; - ovrimos_result_all($res); - ovrimos_free_result($res); - } - ovrimos_close($conn); -} -?> -]]> - </programlisting> - </example> - Cet exemple effectue une connexion à un serveur Ovrimos SQL Server. - </para> - </section> - </partintro> - - &reference.ovrimos.entities.functions; - - </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -94,4 +27,4 @@ sgml-local-catalogs:nil sgml-local-ecat-files:nil End: ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/paradox/constants.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-fr/reference/paradox/constants.xml diff -u phpdoc-fr/reference/paradox/constants.xml:1.5 phpdoc-fr/reference/paradox/constants.xml:1.6 --- phpdoc-fr/reference/paradox/constants.xml:1.5 Mon Jul 23 19:07:06 2007 +++ phpdoc-fr/reference/paradox/constants.xml Fri Mar 28 07:50:38 2008 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> -<section xml:id="paradox.constants" xmlns="http://docbook.org/ns/docbook"> +<appendix xml:id="paradox.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -147,7 +147,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/paradox/reference.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/paradox/reference.xml diff -u phpdoc-fr/reference/paradox/reference.xml:1.9 phpdoc-fr/reference/paradox/reference.xml:1.10 --- phpdoc-fr/reference/paradox/reference.xml:1.9 Mon Dec 10 17:10:11 2007 +++ phpdoc-fr/reference/paradox/reference.xml Fri Mar 28 07:50:38 2008 @@ -1,53 +1,14 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> -<!-- Purpose: database.vendors --> -<!-- Membership: pecl, external --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <reference xml:id="ref.paradox" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Accès aux fichiers Paradox</title> - <titleabbrev>Paradox</titleabbrev> + <title>Paradox File Access</title> <partintro> - <section xml:id="paradox.intro"> - &reftitle.intro; - &warn.experimental; - <para> - Ce module vous permet de lire des bases de données Paradox ainsi que des - fichiers d'index primaires et des fichiers Blob. Il peut également créer des bases - de données Paradox mais dû au manque de documentation surle format des fichiers - Paradox, il se peut que les bases créées ne soient pas lisibles avec toutes les autres - applications. Les bases de données cryptées peuvent être lues sans pour autant spécifier - de mot de passe si pxlib >= 0.5.0 est utilisé. - </para> - <note> - <para> - Ce module est toujours en cours de développement et peut - changer, même si l'API ne sera surement pas modifié en profondeur. - </para> - </note> - </section> - - <section xml:id="paradox.requirements"> - &reftitle.required; - <para> - Vous devez avoir au minimum &php; 5.0.0 et libpx >= 0.4.4 - pour la plupart des fonctions. Quelques nouvelles fonctions ne sont disponibles - que si pxlib >= 0.6.0 est utilisé. L'écriture et la lecture des bases de données - cryptées nécessitent pxlib >= 0.5.0. - La bibliothèque Paradox (libpx) est disponible sur - <link xlink:href="&url.paradox.pxlib;">&url.paradox.pxlib;</link>. - </para> - </section> - - &reference.paradox.configure; - - <section xml:id="paradox.configuration"> - &reftitle.runtime; - &no.config; - </section> + <!-- FIXME: Apparently there is a class here.. --> <section xml:id="paradox.oo-api"> <title>API orientée objet</title> <para> @@ -175,19 +136,9 @@ </table> </para> </section> - - <section xml:id="paradox.resources"> - &reftitle.resources; - <para> - <function>px_new</function> crée un nouvel objet Paradox, nécessaire - à toutes les fonctions Paradox. - </para> - </section> - - &reference.paradox.constants; </partintro> -&reference.paradox.entities.functions; + &reference.paradox.entities.functions; </reference> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/overload/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/book.xml +++ phpdoc-fr/reference/overload/book.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <!-- State: deprecated --> <book xml:id="book.overload" xmlns="http://docbook.org/ns/docbook"> <title>Surcharge d'objets</title> <titleabbrev>Surcharge d'objets</titleabbrev> <preface xml:id="intro.overload"> &reftitle.intro; <para> Le but de cette extension est de permettre de maîtriser les appels aux méthodes et aux membres d'un objet. Seule une fonction est définie dans cette extension, <function>overload</function> qui demande le nom de la classe qui doit supporter cette fonctionnalité. Cette classe doit être pourvue des méthodes nécessaires au bon fonctionnement de l'extension, c'est-à-dire : <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal>, qui servent respectivement à lire, à modifier un membre et à appeler une méthode. De cette manière, l'overloading assure un contrôle sur les fonctions appelées. À l'intérieur de ces méthodes, l'overloading est désactivé, pour que vous puissiez accéder à l'objet. </para> &warn.experimental; <warning> <para> Cette extension ne fait pas partie de &php; 5. &php; 5 supporte <literal>__get()</literal>, <literal>__set()</literal> et <literal>__call()</literal> nativement. Voir la page traitant de la <link linkend="language.oop5.overloading">surcharge en &php; 5</link> pour plus d'informations. </para> </warning> </preface> &reference.overload.setup; &reference.overload.constants; &reference.overload.examples; &reference.overload.reference; </book> <!-- 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/overload/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/constants.xml +++ phpdoc-fr/reference/overload/constants.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="overload.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/overload/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/examples.xml +++ phpdoc-fr/reference/overload/examples.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="overload.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <section xml:id="overload.examples.basic"> <para> Voici un exemple simple de fonctions utilisant <function>overload</function> : <example> <title>Overload avec une classe &php;</title> <programlisting role="php"> <![CDATA[ <?php class OO { var $a = 111; var $elem = array('b' => 9, 'c' => 42); // Fonction de callback pour la lecture de membre function __get($prop_name, &$prop_value) { if (isset($this->elem[$prop_name])) { $prop_value = $this->elem[$prop_name]; return true; } else { return false; } } // Fonction de callback pour l'écriture de membre function __set($prop_name, $prop_value) { $this->elem[$prop_name] = $prop_value; return true; } } // Ici, l'initiation de l'overload overload('OO'); $o = new OO; echo "\$o->a: $o->a\n"; // print: $o->a: 111 echo "\$o->b: $o->b\n"; // print: $o->b: 9 echo "\$o->c: $o->c\n"; // print: $o->c: 42 echo "\$o->d: $o->d\n"; // print: $o->d: // ajout d'une nouvelle valeur au membre $elem, en programmation OOP $o->x = 56; // instantiation de la classe stdclass (elle existe par défaut en PHP 4) // $val n'est pas surchargée ! $val = new stdclass; $val->prop = 555; // Forcez "a" à être un tableau avec l'élément $val // Mais _set() forcera cet élément dans le tableau $elem $o->a = array($val); var_dump($o->a[0]->prop); ?> ]]> </programlisting> </example> </para> </section> </appendix> <!-- 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/overload/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/overload/setup.xml +++ phpdoc-fr/reference/overload/setup.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="overload.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <section xml:id="overload.requirements"> &reftitle.required; &no.requirement; </section> &reference.overload.configure; <section xml:id="overload.configuration"> &reftitle.runtime; &no.config; </section> <section xml:id="overload.resources"> &reftitle.resources; &no.resource; </section> </chapter> <!-- 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/ovrimos/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/book.xml +++ phpdoc-fr/reference/ovrimos/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> <book xml:id="book.ovrimos" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>SQL Ovrimos</title> <!-- {{{ preface --> <preface xml:id="intro.ovrimos"> &reftitle.intro; <para> Ovrimos SQL Server est une base de données relationnelle client/serveur et transactionnelle, combinée avec des fonctionnalités web, et des transactions rapides. </para> <note> <para> &pecl.moved-ver;4.4.5 et &php; 5.1.0. </para> </note> ¬e.no-windows.extension; </preface> <!-- }}} --> &reference.ovrimos.setup; &reference.ovrimos.constants; &reference.ovrimos.examples; &reference.ovrimos.reference; </book> <!-- 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/ovrimos/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/constants.xml +++ phpdoc-fr/reference/ovrimos/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="ovrimos.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/ovrimos/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/examples.xml +++ phpdoc-fr/reference/ovrimos/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="ovrimos.examples" xmlns="http://docbook.org/ns/docbook"> &reftitle.examples; <section xml:id="ovrimos.examples-basic"> <para> <example> <title> Connexion au serveur Ovrimos SQL Server et sélection d'une table système </title> <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("server.domain.com", "8001", "admin", "password"); if ($conn != 0) { echo "Connexion établie !"; $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { echo "Requête effectuée !"; ovrimos_result_all($res); ovrimos_free_result($res); } ovrimos_close($conn); } ?> ]]> </programlisting> </example> </para> </section> </chapter> <!-- 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/ovrimos/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/ovrimos/setup.xml +++ phpdoc-fr/reference/ovrimos/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="ovrimos.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="ovrimos.requirements"> &reftitle.required; <para> Vous devez installer la bibliothèque sqlcli, qui est disponible dans la distribution de Ovrimos SQL Server. </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.ovrimos.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="ovrimos.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="ovrimos.resources"> &reftitle.resources; &no.resource; </section> <!-- }}} --> </chapter> <!-- 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/paradox/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/paradox/book.xml +++ phpdoc-fr/reference/paradox/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: database.vendors --> <!-- Membership: pecl, external --> <!-- State: experimental --> <book xml:id="book.paradox" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Paradox</title> <!-- {{{ preface --> <preface xml:id="intro.paradox"> &reftitle.intro; <para> Ce module vous permet de lire des bases de données Paradox ainsi que des fichiers d'index primaires et des fichiers Blob. Il peut également créer des bases de données Paradox mais dû au manque de documentation surle format des fichiers Paradox, il se peut que les bases créées ne soient pas lisibles avec toutes les autres applications. Les bases de données cryptées peuvent être lues sans pour autant spécifier de mot de passe si pxlib >= 0.5.0 est utilisé. </para> <note> <para> Ce module est toujours en cours de développement et peut changer, même si l'API ne sera surement pas modifié en profondeur. </para> </note> &warn.experimental; </preface> <!-- }}} --> &reference.paradox.setup; &reference.paradox.constants; &reference.paradox.reference; </book> <!-- 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/paradox/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/paradox/setup.xml +++ phpdoc-fr/reference/paradox/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <chapter xml:id="paradox.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="paradox.requirements"> &reftitle.required; <para> Vous devez avoir au minimum &php; 5.0.0 et libpx >= 0.4.4 pour la plupart des fonctions. Quelques nouvelles fonctions ne sont disponibles que si pxlib >= 0.6.0 est utilisé. L'écriture et la lecture des bases de données cryptées nécessitent pxlib >= 0.5.0. La bibliothèque Paradox (libpx) est disponible sur <link xlink:href="&url.paradox.pxlib;">&url.paradox.pxlib;</link>. </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.paradox.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="paradox.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="paradox.resources"> &reftitle.resources; <para> <function>px_new</function> crée un nouvel objet Paradox, nécessaire à toutes les fonctions Paradox. </para> </section> <!-- }}} --> </chapter> <!-- 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 -->